-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo run --example
false positive "is a library and cannot be executed"
#6159
Comments
Looking at cargo/src/cargo/core/manifest.rs Lines 647 to 658 in 5dbac98
If one changes the type signature to cargo/src/cargo/util/toml/targets.rs Lines 328 to 371 in 90fc9f6
.into() call:
How should this be handled?
(Additionally, while looking through the code, it seems that |
Thanks for the report, this definitely sounds like a bug! I agree that we should do some actual parsing here and realize that the string I'd be down for basically any fix that works here, feel free to refactor as necessary! |
Allow crate_type=bin examples to run Fixes #6159
RustAudio/vst-rs#71
In
rust-vst
's Cargo.toml, there is the following definition:among other example declarations which are
crate-type = ["cdylib"]
instead.Trying to run it:
However, if you simply remove the line
crate-type = ["bin"]
, it starts working.The text was updated successfully, but these errors were encountered: