Skip to content
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

Set default-features = false for rustls #427

Merged

Conversation

rukai
Copy link
Contributor

@rukai rukai commented May 18, 2024

Before releasing 0.22, I believe we should change how we depend on rustls.
Since rustls swapped to having multiple backends, we need to set default-features = false for rustls so that the user of tungstenite is free to choose the rustls backend.
This is particularly important since the new default backend for rustls does not build in many environments due to older version of gcc.
This PR needs to land before 0.22 since its a breaking change.

The std feature is enabled since it is enabled by default and required for tungstenite's rustls feature to compile at all

There is currently a PR open against tokio-tungstenite to do the same snapview/tokio-tungstenite#332
But without this PR the tokio-tungstenite PR will have no effect.

@rukai rukai force-pushed the rustls-default-features-false branch from 1d4ac1f to 337de89 Compare May 18, 2024 23:37
@rukai rukai force-pushed the rustls-default-features-false branch from 337de89 to 4353021 Compare May 18, 2024 23:38
Copy link
Member

@daniel-abramov daniel-abramov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Unfortunately I've missed this one for some reason and I've just released 0.22.0 and noticed this one afterwards. I could publish 0.23.0 though.

@daniel-abramov daniel-abramov merged commit 0e25483 into snapview:master Jun 1, 2024
6 checks passed
@rukai
Copy link
Contributor Author

rukai commented Jun 1, 2024

That's unfortunate, our project won't be able to upgrade to 0.22 as is. up to you whether to release 0.23 now or later. We can continue running off a git dependency for a while longer if needed.

@daniel-abramov
Copy link
Member

Done! I'm also going to publish tokio-tungstenite 0.23.0 soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants