-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Workspace dependency feature gets set by unrelated binary in same workspace #10266
Labels
C-bug
Category: bug
Comments
I also tested it on latest stable with the same result:
|
Thanks for the report! This is a known issue where using Closing as a duplicate of #8157. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
I have a project with two binary crates as well as a common library crate. Both binaries depend on the library, but are unrelated to each other.
When activating a feature on one of the binaries the feature gets activated on the other binary as well. I'm not sure if that is intended.
I made a minimal case here.
shared_lib/src/lib.rs
in the test case has two different return values, based on the state ofmy_feature
.bin1
does not set the feature,bin2
does. When executingcargo run --bin bin1
bin1 behaves as if the feature is set.Steps
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: