-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
fix rustls-aws-lc-rs
feature
#2015
Conversation
I don't think we want to do a breaking change for this. |
I see, do you have any ideas about other alternatives? Right now the By executing this command on $ cargo tree -p quinn -f "{p} {f}" --no-default-features --features rustls-aws-lc-rs
quinn v0.11.5 (/home/tudyg/dev/forks/quinn/quinn) aws-lc-rs,rustls-aws-lc-rs
├── bytes v1.7.2 default,std
├── pin-project-lite v0.2.14
├── quinn-proto v0.11.8 (/home/tudyg/dev/forks/quinn/quinn-proto) aws-lc-rs,ring,rustls,rustls-aws-lc-rs,rustls-ring |
Maybe we can rename the rustls dependency to something else (like, |
7cacd87
to
ac0552d
Compare
Note that we haven't released #1962 yet, so changing the aws-lc-rs features in backwards-incompatible ways could also be an option. |
ac0552d
to
0ca0895
Compare
Some job failures (https://github.com/quinn-rs/quinn/actions/runs/11383037824/job/31667830692?pr=2015) seems unrelated to this PR, maybe this PR #2007 didn't pass fully the PR CI?
Great idea, I will try this out |
0ca0895
to
354b12b
Compare
I misunderstood the zulip thread; it's the I've added an edit to the PR description just in case |
I've noticed some related things; I don't know where to put this out, so I put it here.
|
rustls-aws-lc-rs
feature
We use some portable synchronization primitives provided by tokio. When the
Seems reasonable. |
Looks great, thanks! |
In the current Rust editions, if a dependency is declared as optional and it also exists a feature with the same name,
dep:name
will activate both the feature and the optional dependency.That is the case for the
rustls
feature, so sadlywill also activate the
rustls
feature, which also activatesring
.There is a zulip discussion about this surprising behavior here.
Hopefully, in Rust 2024 edition, with this change, the behavior will be less surprising.
The PR introduce a breaking change, but as far as I know, there is no other way to fix this
Edit: I misunderstood the
zulip
thread; it's thecrate/feature
syntax that activates both the optional dependency and the feature if there is one with the same name. Not thedep:crate
one. We can just use thecrate?/feature
syntax here and it should be non-breaking.