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

Allow usage of ring instead of aws-lc-rs in tokio-rustls #1943

Open
Leandros opened this issue Sep 16, 2024 · 0 comments
Open

Allow usage of ring instead of aws-lc-rs in tokio-rustls #1943

Leandros opened this issue Sep 16, 2024 · 0 comments

Comments

@Leandros
Copy link

Feature Request

Motivation

To allow for not linking to aws-lc-rs (specifically, removing any usages of aws-lc-sys), I'd like to have the ability to chose the used provider from rustls.

Proposal

Tonic pulls in the tokio-rustls dependency, which defaults to use aws-lc as a cryptography primitive provider. However, tokio-rustls also ships with an alternative provider ring. To enable ring, the feature ring needs to be set (and the default features disabled).

To allow this with tonic, tonic would have to expose a new feature that allows choosing ring over aws-lc and forwards the feature flags to tokio-rustls.

Alternatives

Ideally, cargo would allow us to change features of dependencies of dependencies. However, at the current moment this isn't possible.

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

No branches or pull requests

1 participant