From 9946890b53db593f34519491defef5c45a0e5f9c Mon Sep 17 00:00:00 2001 From: Max Inden Date: Fri, 25 Aug 2023 10:44:15 +0200 Subject: [PATCH] fix(misc/server): import libp2p as workspace dependency One needs to specify a version of `libp2p` dependeny in `misc/server/Cargo.toml` or import as a workspace dependency, in order to publish to crates.io. This commit does the latter for the sake of consistency with the other libp2p-* dependencies. Pull-Request: #4391. --- Cargo.toml | 1 + misc/server/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6fb896e9..3b239fec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,6 +64,7 @@ resolver = "2" rust-version = "1.65.0" [workspace.dependencies] +libp2p = { version = "0.52.3", path = "libp2p" } libp2p-allow-block-list = { version = "0.2.0", path = "misc/allow-block-list" } libp2p-autonat = { version = "0.11.0", path = "protocols/autonat" } libp2p-connection-limits = { version = "0.2.1", path = "misc/connection-limits" } diff --git a/misc/server/Cargo.toml b/misc/server/Cargo.toml index 2bf053d4..29996151 100644 --- a/misc/server/Cargo.toml +++ b/misc/server/Cargo.toml @@ -17,7 +17,7 @@ env_logger = "0.10.0" futures = "0.3" futures-timer = "3" hyper = { version = "0.14", features = ["server", "tcp", "http1"] } -libp2p = { path = "../../libp2p", features = ["autonat", "dns", "tokio", "noise", "tcp", "yamux", "identify", "kad", "ping", "relay", "metrics", "rsa", "macros", "quic"] } +libp2p = { workspace = true, features = ["autonat", "dns", "tokio", "noise", "tcp", "yamux", "identify", "kad", "ping", "relay", "metrics", "rsa", "macros", "quic"] } log = "0.4" prometheus-client = "0.21.2" serde = "1.0.183"