Build, but do not link dynamic libraries #7517
Labels
A-linkage
Area: linker issues, dylib, cdylib, shared libraries, so
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Describe the problem you are trying to solve
I have a
main
binary and set ofcdylib
plugins. I wantcdylib
plugins to be built every time (as necessary, after doing all up-to-date checks) I runmain
binary, but without doing any linking.Describe the solution you'd like
Basically, I want to have a dependency like:
So every time I do
cargo run --package main
,cargo
will also implicitly docargo build --package my-nice-plugin
to produce a loadable library.The text was updated successfully, but these errors were encountered: