Skip to content

feat: add rustls-no-provider-no-roots feature - #3008

Open
theawless wants to merge 1 commit into
seanmonstar:masterfrom
theawless:master
Open

feat: add rustls-no-provider-no-roots feature#3008
theawless wants to merge 1 commit into
seanmonstar:masterfrom
theawless:master

Conversation

@theawless

@theawless theawless commented Apr 9, 2026

Copy link
Copy Markdown

Implemented suggestion mentioned here: #2968 (comment)


Add a feature flag to use rustls without a crypto provider and without rustls-platform-verifier, for users who provide their own crypto provider and certificates via tls_certs_only().

This avoids pulling in platform-native dependencies that are problematic for cross-compilation and environments like Android where JNI initialization is required.

Closes #2948
Closes #2968

@theawless

theawless commented Apr 21, 2026

Copy link
Copy Markdown
Author

@seanmonstar I also have a tinier commit that doesn't introduce rustls-no-provider-no-roots feature here: master...theawless:reqwest:main2 if that's more preferable.

This diff allows power users to choose __rustls-[feature] manually instead.

0.12 was super easy to cross compile and I hope we can have 0.13 do the same as well.

Add a feature flag to use rustls without a crypto provider and without
rustls-platform-verifier, for users who provide their own crypto
provider and certificates via tls_certs_only().

This avoids pulling in platform-native dependencies that are
problematic for cross-compilation and environments like Android
where JNI initialization is required.

Closes seanmonstar#2948
Closes seanmonstar#2968
@11alieberman

Copy link
Copy Markdown

Is there any movement here? The merge of this PR would also be extremely helpful for us.

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.

Crash: rust-webpki-roots causes crash on Android Feature to disable rustls-platform-verifier

2 participants