Skip to content

Commit

Permalink
Disable rustls' aws-lc-rs feature
Browse files Browse the repository at this point in the history
When both the `ring` and `aws-lr-rs` features in `rustls` are enabled,
the rustls `CryptoProvider` installer from crate features no longer
works, as the provider to be used is ambiguous [1].

This is the default configuration and feature set that other
dependencies like `reqwest` are using.

[1]: https://docs.rs/rustls/latest/src/rustls/crypto/mod.rs.html#261-282
  • Loading branch information
flip1995 committed Oct 28, 2024
1 parent a66bdcf commit 0991d79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ rand = { version = "0.8.5", optional = true }
reqwest = { version = "0.12.2", optional = true, default-features = false, features = [
"json",
] }
rustls = { version = "0.23.4", optional = true }
rustls = { version = "0.23.4", optional = true, default-features = false, features = [
"ring",
] }
serde = { version = "1.0.171", features = ["derive"], optional = true }
serde_json = { version = "1.0.103", optional = true }
thiserror = { version = "1.0.43", optional = true }
Expand Down

0 comments on commit 0991d79

Please sign in to comment.