provider-example: conditionally enable rusts std feat

Previously the `std` feature was in the explicit rustls dependency
feature list, and not opted-in by the provider's own `std` feature.
I believe this means when building the provider with
`--no-default-features` we were still using Rustls w/ the `std` feature.
This commit is contained in:
Daniel McCarney 2024-03-13 13:30:07 -04:00
parent b4722053c2
commit d7aad5970b
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ p256 = { version = "0.13.2", default-features = false, features = ["alloc", "ecd
pkcs8 = "0.10.2"
pki-types = { package = "rustls-pki-types", version = "1" }
rand_core = { version = "0.6", features = ["getrandom"] }
rustls = { path = "../rustls", default-features = false, features = ["logging", "std", "tls12"] }
rustls = { path = "../rustls", default-features = false, features = ["logging", "tls12"] }
rsa = { version = "0.9", features = ["sha2"], default-features = false }
sha2 = { version = "0.10", default-features = false }
signature = "2"
@ -35,7 +35,7 @@ webpki-roots = "0.26"
[features]
default = ["std"]
std = ["hpke-rs/std", "hpke-rs-crypto/std", "pkcs8/std"]
std = ["hpke-rs/std", "hpke-rs-crypto/std", "pkcs8/std", "rustls/std"]
[[test]]
name = "hpke"