Skip to content

Commit 9946890

Browse files
authored
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.
1 parent f265f39 commit 9946890

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ resolver = "2"
6464
rust-version = "1.65.0"
6565

6666
[workspace.dependencies]
67+
libp2p = { version = "0.52.3", path = "libp2p" }
6768
libp2p-allow-block-list = { version = "0.2.0", path = "misc/allow-block-list" }
6869
libp2p-autonat = { version = "0.11.0", path = "protocols/autonat" }
6970
libp2p-connection-limits = { version = "0.2.1", path = "misc/connection-limits" }

misc/server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env_logger = "0.10.0"
1717
futures = "0.3"
1818
futures-timer = "3"
1919
hyper = { version = "0.14", features = ["server", "tcp", "http1"] }
20-
libp2p = { path = "../../libp2p", features = ["autonat", "dns", "tokio", "noise", "tcp", "yamux", "identify", "kad", "ping", "relay", "metrics", "rsa", "macros", "quic"] }
20+
libp2p = { workspace = true, features = ["autonat", "dns", "tokio", "noise", "tcp", "yamux", "identify", "kad", "ping", "relay", "metrics", "rsa", "macros", "quic"] }
2121
log = "0.4"
2222
prometheus-client = "0.21.2"
2323
serde = "1.0.183"

0 commit comments

Comments
 (0)