Skip to content

Allow to change rustls crypto provider#362

Merged
BewareMyPower merged 1 commit intostreamnative:masterfrom
dsferruzza:remove-aws-lc-by-default
Sep 29, 2025
Merged

Allow to change rustls crypto provider#362
BewareMyPower merged 1 commit intostreamnative:masterfrom
dsferruzza:remove-aws-lc-by-default

Conversation

@dsferruzza
Copy link
Contributor

Hi!

I had the issue explained in #344 (and it was blocking me because aws-lc-sys does not seem to be able to easily cross compile to ARMv6) so I made this change and it seems to fix it.
I'm using my fork successfully in my app.

I'm not sure if this is the right way to fix this though: if I understand correctly, this relies on having either the aws-lc-rs or the ring Rustls features enabled in the dependency tree(?)

Another way could be to introduce the following features in this crate:

  • tokio-rustls-runtime-ring
  • tokio-rustls-runtime-aws-lc
  • async-std-rustls-runtime-ring
  • async-std-rustls-runtime-aws-lc

Each would enable the correct features in the Rustls-related dependencies.
The tokio-rustls-runtime and async-std-rustls-runtime features would be aliases to whatever should be the default.

What do you think?

@BewareMyPower BewareMyPower self-assigned this Sep 21, 2025
@dsferruzza dsferruzza force-pushed the remove-aws-lc-by-default branch from 0699d59 to 46fe4db Compare September 21, 2025 23:40
@dsferruzza dsferruzza changed the title Avoid depending on aws-lc-sys by default Allow to change rustls crypto provider Sep 21, 2025
@BewareMyPower BewareMyPower merged commit d1f18e6 into streamnative:master Sep 29, 2025
7 checks passed
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