Skip to content

Commit e70b854

Browse files
committed
chore(gossipsub): use crates.io libp2p deps
1 parent 6433611 commit e70b854

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

examples/chat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ release = false
1111
[dependencies]
1212
tokio = { workspace = true, features = ["full"] }
1313
futures = { workspace = true }
14-
libp2p = { path = "../../libp2p", features = [ "tokio", "gossipsub", "mdns", "noise", "macros", "tcp", "yamux", "quic"] }
14+
libp2p = { version = "0.56", features = ["tokio", "gossipsub", "mdns", "noise", "macros", "tcp", "yamux", "quic"] }
1515
tracing-subscriber = { workspace = true, features = ["env-filter"] }
1616

1717
[lints]

examples/ipfs-private/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ release = false
1212
tokio = { workspace = true, features = ["rt-multi-thread", "macros", "io-std"] }
1313
either = "1.12"
1414
futures = { workspace = true }
15-
libp2p = { path = "../../libp2p", features = [ "tokio", "gossipsub", "dns", "identify", "kad", "macros", "noise", "ping", "pnet", "tcp", "websocket", "yamux"] }
15+
libp2p = { version = "0.56", features = ["tokio", "gossipsub", "dns", "identify", "kad", "macros", "noise", "ping", "pnet", "tcp", "websocket", "yamux"] }
1616
tracing-subscriber = { workspace = true, features = ["env-filter"] }
1717

1818
[lints]

protocols/gossipsub/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,23 @@ getrandom = { workspace = true }
2828
hashlink = { workspace = true }
2929
hex_fmt = "0.3.0"
3030
web-time = { workspace = true }
31-
libp2p-core = { workspace = true }
32-
libp2p-identity = { workspace = true, features = ["rand"] }
33-
libp2p-swarm = { workspace = true }
31+
# Libp2p crates, updated to use crates.io versions so that we can use this gossipsub fork with
32+
# crates.io libp2p
33+
libp2p-core = "0.43"
34+
libp2p-identity = { version = "0.2", features = ["rand"] }
35+
libp2p-swarm = "0.47"
3436
quick-protobuf = "0.8"
35-
quick-protobuf-codec = { workspace = true }
37+
quick-protobuf-codec = "0.3.1"
3638
rand = "0.8"
3739
regex = "1.10.5"
3840
serde = { version = "1", optional = true, features = ["derive"] }
3941
sha2 = "0.10.8"
4042
tracing = { workspace = true }
4143

42-
# Metrics dependencies
43-
prometheus-client = { workspace = true, optional = true }
44+
prometheus-client = { version = "0.23", optional = true }
4445

4546
[dev-dependencies]
46-
libp2p-core = { workspace = true }
47-
libp2p-swarm-test = { path = "../../swarm-test" }
47+
libp2p-swarm-test = { version = "0.6.0", features = ["tokio"] }
4848
quickcheck = { workspace = true }
4949
tracing-subscriber = { workspace = true, features = ["env-filter"] }
5050
tokio = { workspace = true, features = ["rt", "rt-multi-thread", "time", "macros"] }

0 commit comments

Comments
 (0)