Skip to content

feat: add rustls-no-provider TLS feature - #957

Open
valkum wants to merge 1 commit into
huggingface:mainfrom
valkum:feat/rustls-no-provider
Open

feat: add rustls-no-provider TLS feature#957
valkum wants to merge 1 commit into
huggingface:mainfrom
valkum:feat/rustls-no-provider

Conversation

@valkum

@valkum valkum commented Sep 3, 2026

Copy link
Copy Markdown

reqwest has a rustls-no-provider feature for builds that want rustls without the bundled aws-lc-rs provider. Forward it through xet-client, xet-data and hf-xet so consumers can install their own CryptoProvider, such as ring, and keep aws-lc-rs and its cmake build dependency out of the tree.

It stays off by default, so existing builds keep rustls with aws-lc-rs.


Note

Low Risk
Cargo-only feature forwarding with no runtime code changes; default TLS behavior stays on rustls with aws-lc-rs.

Overview
Adds an optional rustls-no-provider Cargo feature on xet-client, xet-data, and hf-xet, wired the same way as existing TLS features: xet-client enables reqwest/rustls-no-provider, and the other crates forward it through xet-client.

This lets downstream builds use rustls without the default aws-lc-rs crypto provider so they can install their own CryptoProvider (e.g. ring) and avoid aws-lc-rs / cmake in the dependency tree. The feature is not in default, so existing rustls-tls behavior is unchanged.

Reviewed by Cursor Bugbot for commit 8ffca18. Bugbot is set up for automated code reviews on this repo. Configure here.

reqwest has a rustls-no-provider feature for builds that want rustls
without the bundled aws-lc-rs provider. Forward it through xet-client,
xet-data and hf-xet so consumers can install their own CryptoProvider,
such as ring, and keep aws-lc-rs and its cmake build dependency out of
the tree.

It stays off by default, so existing builds keep rustls with aws-lc-rs.

@seanses seanses left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

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.

2 participants