diff options
| author | tv <tv@krebsco.de> | 2026-10-30 15:55:21 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-30 15:55:21 +0100 |
| commit | 055efc604d8cf56b2cdd05bbd863acb9c2ea12d6 (patch) | |
| tree | ef3f557b93f7daf3bef0c2cc6d0e38048bec4377 /Cargo.toml | |
| parent | 54a8d7b3409f6a5857b6fc9a964a36b66c28ae25 (diff) | |
make mycelium optional
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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" |
