ensure no rustls crypto provider is selected by default: sync up with rustls = { version = "0.23", default-features = false, features = ["std", "tls12"], optional = true }
ensure ring is turn on if https is needed
Context
Without change 2,
A simple crate like this will fail to compile:
[package]
name = "test-mockhttp"
version = "0.1.0"
edition = "2021"
[dependencies]
httpmock = { version = "0.8.0-alpha.1", features = ["remote-https"]}
Change 1is made because current dependency definition let tokio-rustls and hyper-rustls default to use aws-lc-rs.
Since I assume current rustls = { version = "0.23", default-features = false, features = ["std", "tls12"], optional = true } is intent to not use any crypto provide by default. So, I think it's better to sync up them.
Changes in this PR
rustls = { version = "0.23", default-features = false, features = ["std", "tls12"], optional = true }
ring
is turn on if https is neededContext
Without change 2, A simple crate like this will fail to compile:
Change 1is made because current dependency definition let
tokio-rustls
andhyper-rustls
default to useaws-lc-rs
. Since I assume currentrustls = { version = "0.23", default-features = false, features = ["std", "tls12"], optional = true }
is intent to not use any crypto provide by default. So, I think it's better to sync up them.