-
Notifications
You must be signed in to change notification settings - Fork 79
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
termination feature infects the entire workspace #74
Comments
This is unfortunate. I don't know how to avoid this other than changing the handling of SIGTERM out from a feature and use a separate handler instead. Any ideas? |
Yeah, I don't believe you can get away by using a cargo feature here and will have to make users of this crate to indicate their preference through API in some shape or form. |
I think |
I don't think that's the case. The new feature resolver avoids unifying features between dev-/build- deps and normal deps, but features are still unified within each type of dep. That is to say, if two crates in the normal dependency tree both depend on ctrlc (with compatible versions), and one sets |
Cargo will unify the features across crates, so if you have in your workspace two different crates that depend on
ctrlc
, one withtermination
feature enabled and other without, then the binary without it enabled will implicitly get thetermination
feature enabled for it as well, potentially leading to unintended behaviour.The text was updated successfully, but these errors were encountered: