Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build, but do not link dynamic libraries #7517

Closed
idubrov opened this issue Oct 16, 2019 · 1 comment
Closed

Build, but do not link dynamic libraries #7517

idubrov opened this issue Oct 16, 2019 · 1 comment
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`

Comments

@idubrov
Copy link

idubrov commented Oct 16, 2019

Describe the problem you are trying to solve

I have a main binary and set of cdylib plugins. I want cdylib plugins to be built every time (as necessary, after doing all up-to-date checks) I run main binary, but without doing any linking.

Describe the solution you'd like

Basically, I want to have a dependency like:

[???-dependencies]
my-nice-plugin = { path = "../plugin" }

So every time I do cargo run --package main, cargo will also implicitly do cargo build --package my-nice-plugin to produce a loadable library.

@idubrov idubrov added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Oct 16, 2019
@ehuss ehuss changed the title Target-only dependency Build, but do not link dynamic libraries Nov 8, 2019
@ehuss ehuss added the A-linkage Area: linker issues, dylib, cdylib, shared libraries, so label Nov 8, 2019
@epage
Copy link
Contributor

epage commented Nov 2, 2023

I believe #9096 covers this. Closing in favor of that. If there is a reason for us to reconsider, let us know!

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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`
Projects
None yet
Development

No branches or pull requests

3 participants