-
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
The same crate with different features #10489
Comments
I believe it's the behaviour of feature unification, unfortunately. Cargo will use the union of features of a dependency if it appears multiple times in the dependency graph. A rule of thumb is that define features as additive as possible. However, The proposed solution seems straight-forward but the devil is in the details. Does As a workaround, maybe you can try to fork |
Currently, I just fork the I wonder if the [dependency.my-rhai]
package = "rhai"
version = "1.5.0"
features = ["sync"] If all the package info of |
I'm going to close as this is expected behavior with how features are unified. Features should be additive, and it looks like there was some discussion in the linked issue about possibly fixing rhai's use of features. I think it is unlikely that cargo will gain the ability to build multiple copies with different features, or support "negative" features. I recommend working with the casbin or rhai maintainers to find a solution. |
Problem
casbin has
rhai
as it's dependency with features:So I can not use
rhai
without the featureno_module
Proposed Solution
Notes
No response
The text was updated successfully, but these errors were encountered: