-
Notifications
You must be signed in to change notification settings - Fork 468
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
Make loom dependency optional #666
Conversation
bors d=jonhoo |
✌️ jonhoo can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
Build succeeded: |
I would appreciate one! |
Published in crossbeam-utils 0.8.3 & crossbeam-epoch 0.9.3. |
@taiki-e thanks for getting this resolved so quickly! |
Do you people remember why you put loom both behind a |
@faern See #487 (comment) (and subsequent 2 comments) and #638 for related discussion. (TL;DR that is not compliant with Cargo's recommendations) |
I have read those, and it did not shed any light on it for me. I'm not really asking why it's optional, rather why it's behind But changing from Is your motivation that by making it a cfg, even if it is exposed as a feature, enabling it does nothing for downstream? EDIT: Cargo is indeed not really equipped to handle this well. But yeah, your solution is probably the least bad :) I move towards that also: faern/oneshot#45 |
The loom dependency will never compile unless users enable cfg, but the way cargo and crates.io handle cfg-ed dependencies is not very good and confuses users.
This issue seems to work around by the way proposed by @matklad in #487 (comment).
So this PR uses that workaround.
Closes #665
r? @jeehoonkang @jonhoo