aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-30 15:55:21 +0100
committertv <tv@krebsco.de>2026-10-30 15:55:21 +0100
commit055efc604d8cf56b2cdd05bbd863acb9c2ea12d6 (patch)
treeef3f557b93f7daf3bef0c2cc6d0e38048bec4377 /Cargo.toml
parent54a8d7b3409f6a5857b6fc9a964a36b66c28ae25 (diff)
make mycelium optional
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml9
1 files changed, 7 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index db5503d..45ae47c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,8 +3,13 @@ name = "continuum"
version = "1.0.0"
edition = "2024"
+# The transports are features, none of them default: a build has those it names, at
+# least one (`--features mycelium`, `--features libp2p,tor`, ...).
[features]
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"]
# The libp2p transport (`--transports libp2p`).
libp2p = ["dep:libp2p", "dep:libp2p-stream", "dep:futures"]
# The Tor transport (`--transports tor`): onion services, with arti.
@@ -44,9 +49,9 @@ libp2p = { version = "0.57", optional = true, features = ["tokio", "tcp", "quic"
libp2p-stream = { version = "0.5.0-alpha", optional = true }
ed25519-dalek = "3"
getrandom = "0.4"
-libc = "0.2"
+libc = { version = "0.2", optional = true }
password-hash = "0.6"
-reqwest = { version = "0.13", features = ["json", "query"] }
+reqwest = { version = "0.13", optional = true, features = ["json", "query"] }
rmp-serde = "1.3"
serde = { version = "1.0", features = ["derive"] }
serde_bytes = "0.11"