aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-30 16:03:02 +0100
committertv <tv@krebsco.de>2026-10-30 16:03:02 +0100
commitdfac9af1d96702f451b9d48ec7127455c3a1c560 (patch)
treedc3ec812f9ae6b0c77f361cadd426f113f46b1e8 /Cargo.toml
parent055efc604d8cf56b2cdd05bbd863acb9c2ea12d6 (diff)
use rustls with ring for reqwest
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml7
1 files changed, 5 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 45ae47c..f1e7539 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,7 +9,7 @@ edition = "2024"
tokio-console = ["dep:console-subscriber"]
# The Mycelium transport (`--transports mycelium`, the default where built): through a
# Mycelium daemon's API, one it supervises or one running elsewhere.
-mycelium = ["dep:reqwest", "dep:libc"]
+mycelium = ["dep:reqwest", "dep:rustls", "dep:libc"]
# The libp2p transport (`--transports libp2p`).
libp2p = ["dep:libp2p", "dep:libp2p-stream", "dep:futures"]
# The Tor transport (`--transports tor`): onion services, with arti.
@@ -51,7 +51,10 @@ ed25519-dalek = "3"
getrandom = "0.4"
libc = { version = "0.2", optional = true }
password-hash = "0.6"
-reqwest = { version = "0.13", optional = true, features = ["json", "query"] }
+# Its TLS (only for a Mycelium daemon elsewhere, over https) is rustls with ring, which
+# libp2p's QUIC uses too, rather than reqwest's default aws-lc (a C library, cmake).
+reqwest = { version = "0.13", optional = true, default-features = false, features = ["json", "query", "http2", "charset", "system-proxy", "rustls-no-provider"] }
+rustls = { version = "0.23", optional = true, default-features = false, features = ["ring", "std", "tls12", "logging"] }
rmp-serde = "1.3"
serde = { version = "1.0", features = ["derive"] }
serde_bytes = "0.11"