Is it possible to vendor dependencies only for a given target?

We have an application for which we vendor dependencies using cargo vendor. This application specifically targets only Linux systems, but we get a whole bunch of Windows and WASM specific dependencies. Is it possible to somehow specify that only dependencies used for a given target must be vendored? We can not even remove the unnecessary dependencies manually since it would result in a compilation error.

I don't think the built-in command can do that, but this will:

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.