From d1926800dfdbfba213a0b5060777055d8b1dbae4 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 27 Oct 2026 02:22:24 +0100 Subject: add libp2p transport --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 31b4fe7..4d48f1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2024" [features] tokio-console = ["dep:console-subscriber"] # The libp2p transport (`--transports libp2p`). -libp2p = [] +libp2p = ["dep:libp2p", "dep:libp2p-stream", "dep:futures"] [dependencies] anyhow = "1.0" @@ -21,6 +21,9 @@ blake3 = "1.8" bytes = "1.12" clap = "4.6" dashmap = "6.2" +futures = { version = "0.3", optional = true } +libp2p = { version = "0.56", optional = true, features = ["tokio", "tcp", "quic", "dns", "noise", "yamux", "ed25519"] } +libp2p-stream = { version = "0.4.0-alpha", optional = true } ed25519-dalek = "3" getrandom = "0.4" libc = "0.2" -- cgit v1.3.1