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 Dec 26, 2024
1 parent edda880 commit d91ef46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 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", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }
thiserror = { version = "2", optional = true }
Expand All @@ -43,7 +45,7 @@ default = ["default-tls", "tokio", "ureq"]
# These features are only relevant when used with the `tokio` feature, but this might change in the future.
default-tls = []
native-tls = ["dep:reqwest", "reqwest/default", "dep:native-tls", "ureq/native-tls"]
rustls-tls = ["dep:rustls", "reqwest/rustls-tls"]
rustls-tls = ["dep:reqwest", "dep:rustls", "reqwest/rustls-tls"]
tokio = [
"dep:futures",
"dep:indicatif",
Expand Down

0 comments on commit d91ef46

Please sign in to comment.