Skip to content

net/quinn: Specify crypto provider explicitly

rustls allows the choice of ring or aws-lc-rs as the cryptographic library implementation. This is enabled/selected via Cargo feature flags. We have plugins directly or indirectly depending on rustls like quinn, aws and spotify. In the presence of multiple plugins, selecting different implementations as the default, rustls can panic.

The safest way to avoid this is by using builder_with_provider and selecting a provider explicitly.

See below issues for further discussion and clarifications.

https://github.com/rustls/rustls/issues/1877

https://github.com/seanmonstar/reqwest/pull/2225

While at it, also specify features explicitly for quinn and rustls.

Closes #616 (closed).

Edited by Sanchayan Maity

Merge request reports

Loading