mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
Use ring instead of aws-lc as the default backend for hyper-rustls
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
This commit is contained in:
parent
98e9703edb
commit
faeaf506d6
1 changed files with 7 additions and 2 deletions
|
@ -67,12 +67,12 @@ protobuf-json-mapping = "3.5"
|
|||
# but currently, hyper-proxy2 and tokio-tungstenite do not support it.
|
||||
[target.'cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))'.dependencies]
|
||||
hyper-proxy2 = { version = "0.1", default-features = false, features = ["rustls"] }
|
||||
hyper-rustls = { version = "0.27.2", default-features = false, features = ["aws-lc-rs", "http1", "logging", "tls12", "native-tokio", "http2"] }
|
||||
hyper-rustls = { version = "0.27.2", default-features = false, features = ["http1", "logging", "tls12", "native-tokio", "http2"] }
|
||||
tokio-tungstenite = { version = "0.24", default-features = false, features = ["rustls-tls-native-roots"] }
|
||||
|
||||
[target.'cfg(not(any(target_os = "windows", target_os = "macos", target_os = "linux")))'.dependencies]
|
||||
hyper-proxy2 = { version = "0.1", default-features = false, features = ["rustls-webpki"] }
|
||||
hyper-rustls = { version = "0.27.2", default-features = false, features = ["aws-lc-rs", "http1", "logging", "tls12", "webpki-tokio", "http2"] }
|
||||
hyper-rustls = { version = "0.27.2", default-features = false, features = ["http1", "logging", "tls12", "webpki-tokio", "http2"] }
|
||||
tokio-tungstenite = { version = "0.24", default-features = false, features = ["rustls-tls-webpki-roots"] }
|
||||
|
||||
[build-dependencies]
|
||||
|
@ -81,3 +81,8 @@ vergen-gitcl = { version = "1.0.0", default-features = false, features = ["build
|
|||
|
||||
[dev-dependencies]
|
||||
tokio = { version = "1", features = ["macros", "parking_lot"] }
|
||||
|
||||
[features]
|
||||
with-aws-lc-rs = ["hyper-rustls/aws-lc-rs"]
|
||||
with-ring = ["hyper-rustls/ring"]
|
||||
default = ["with-ring"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue