Skip to content

Commit 28fe6ed

Browse files
authored
*: Use upstream multiaddr crate (#2075)
Use multiaddr instead of parity-multiaddr, removing the latter from the repository.
1 parent a472819 commit 28fe6ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+176
-2048
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,34 @@
3636

3737
## Utilities
3838

39-
- [`parity-multiaddr` CHANGELOG](misc/multiaddr/CHANGELOG.md)
4039
- [`multistream-select` CHANGELOG](misc/multistream-select/CHANGELOG.md)
4140

4241
# `libp2p` facade crate
4342

43+
## Version 0.39.0 [unreleased]
44+
45+
- Update individual crates.
46+
- `libp2p-core`
47+
- `libp2p-deflate`
48+
- `libp2p-dns`
49+
- `libp2p-floodsub`
50+
- `libp2p-gossipsub`
51+
- `libp2p-identify`
52+
- `libp2p-kad`
53+
- `libp2p-mdns`
54+
- `libp2p-mplex`
55+
- `libp2p-noise`
56+
- `libp2p-ping`
57+
- `libp2p-plaintext`
58+
- `libp2p-relay`
59+
- `libp2p-request-response`
60+
- `libp2p-swarm`
61+
- `libp2p-tcp`
62+
- `libp2p-uds`
63+
- `libp2p-wasm-ext`
64+
- `libp2p-websocket`
65+
- `libp2p-yamux`
66+
4467
## Version 0.38.0 [2021-05-17]
4568

4669
- Update individual crates.

Cargo.toml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "libp2p"
33
edition = "2018"
44
description = "Peer-to-peer networking library"
5-
version = "0.38.0"
5+
version = "0.39.0"
66
authors = ["Parity Technologies <[email protected]>"]
77
license = "MIT"
88
repository = "https://github.com/libp2p/rust-libp2p"
@@ -64,35 +64,35 @@ atomic = "0.5.0"
6464
bytes = "1"
6565
futures = "0.3.1"
6666
lazy_static = "1.2"
67-
libp2p-core = { version = "0.28.3", path = "core", default-features = false }
68-
libp2p-floodsub = { version = "0.29.0", path = "protocols/floodsub", optional = true }
69-
libp2p-gossipsub = { version = "0.31.0", path = "./protocols/gossipsub", optional = true }
70-
libp2p-identify = { version = "0.29.0", path = "protocols/identify", optional = true }
71-
libp2p-kad = { version = "0.30.0", path = "protocols/kad", optional = true }
72-
libp2p-mplex = { version = "0.28.0", path = "muxers/mplex", optional = true }
73-
libp2p-noise = { version = "0.31.0", path = "transports/noise", optional = true }
74-
libp2p-ping = { version = "0.29.0", path = "protocols/ping", optional = true }
75-
libp2p-plaintext = { version = "0.28.0", path = "transports/plaintext", optional = true }
67+
libp2p-core = { version = "0.29.0", path = "core", default-features = false }
68+
libp2p-floodsub = { version = "0.30.0", path = "protocols/floodsub", optional = true }
69+
libp2p-gossipsub = { version = "0.32.0", path = "./protocols/gossipsub", optional = true }
70+
libp2p-identify = { version = "0.30.0", path = "protocols/identify", optional = true }
71+
libp2p-kad = { version = "0.31.0", path = "protocols/kad", optional = true }
72+
libp2p-mplex = { version = "0.29.0", path = "muxers/mplex", optional = true }
73+
libp2p-noise = { version = "0.32.0", path = "transports/noise", optional = true }
74+
libp2p-ping = { version = "0.30.0", path = "protocols/ping", optional = true }
75+
libp2p-plaintext = { version = "0.29.0", path = "transports/plaintext", optional = true }
7676
libp2p-pnet = { version = "0.21.0", path = "transports/pnet", optional = true }
77-
libp2p-relay = { version = "0.2.0", path = "protocols/relay", optional = true }
78-
libp2p-request-response = { version = "0.11.0", path = "protocols/request-response", optional = true }
79-
libp2p-swarm = { version = "0.29.0", path = "swarm" }
77+
libp2p-relay = { version = "0.3.0", path = "protocols/relay", optional = true }
78+
libp2p-request-response = { version = "0.12.0", path = "protocols/request-response", optional = true }
79+
libp2p-swarm = { version = "0.30.0", path = "swarm" }
8080
libp2p-swarm-derive = { version = "0.23.0", path = "swarm-derive" }
81-
libp2p-uds = { version = "0.28.0", path = "transports/uds", optional = true }
82-
libp2p-wasm-ext = { version = "0.28.2", path = "transports/wasm-ext", default-features = false, optional = true }
83-
libp2p-yamux = { version = "0.32.0", path = "muxers/yamux", optional = true }
84-
multiaddr = { package = "parity-multiaddr", version = "0.11.2", path = "misc/multiaddr" }
81+
libp2p-uds = { version = "0.29.0", path = "transports/uds", optional = true }
82+
libp2p-wasm-ext = { version = "0.29.0", path = "transports/wasm-ext", default-features = false, optional = true }
83+
libp2p-yamux = { version = "0.33.0", path = "muxers/yamux", optional = true }
84+
multiaddr = { version = "0.12.0" }
8585
parking_lot = "0.11.0"
8686
pin-project = "1.0.0"
8787
smallvec = "1.6.1"
8888
wasm-timer = "0.2.4"
8989

9090
[target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies]
91-
libp2p-deflate = { version = "0.28.0", path = "transports/deflate", optional = true }
92-
libp2p-dns = { version = "0.28.1", path = "transports/dns", optional = true, default-features = false }
93-
libp2p-mdns = { version = "0.30.0", path = "protocols/mdns", optional = true }
94-
libp2p-tcp = { version = "0.28.0", path = "transports/tcp", default-features = false, optional = true }
95-
libp2p-websocket = { version = "0.29.0", path = "transports/websocket", optional = true }
91+
libp2p-deflate = { version = "0.29.0", path = "transports/deflate", optional = true }
92+
libp2p-dns = { version = "0.29.0", path = "transports/dns", optional = true, default-features = false }
93+
libp2p-mdns = { version = "0.31.0", path = "protocols/mdns", optional = true }
94+
libp2p-tcp = { version = "0.29.0", path = "transports/tcp", default-features = false, optional = true }
95+
libp2p-websocket = { version = "0.30.0", path = "transports/websocket", optional = true }
9696

9797
[dev-dependencies]
9898
async-std = { version = "1.6.2", features = ["attributes"] }
@@ -103,7 +103,6 @@ tokio = { version = "1.0.1", features = ["io-util", "io-std", "macros", "rt", "r
103103
resolver = "2"
104104
members = [
105105
"core",
106-
"misc/multiaddr",
107106
"misc/multistream-select",
108107
"misc/peer-id-generator",
109108
"muxers/mplex",

core/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# 0.28.4 [unreleased]
1+
# 0.29.0 [unreleased]
2+
3+
- Switch from `parity-multiaddr` to upstream `multiaddr`.
24

35
- Update dependencies.
46

core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "libp2p-core"
33
edition = "2018"
44
description = "Core traits and structs of libp2p"
5-
version = "0.28.4"
5+
version = "0.29.0"
66
authors = ["Parity Technologies <[email protected]>"]
77
license = "MIT"
88
repository = "https://github.com/libp2p/rust-libp2p"
@@ -20,7 +20,7 @@ futures-timer = "3"
2020
lazy_static = "1.2"
2121
libsecp256k1 = { version = "0.5.0", optional = true }
2222
log = "0.4"
23-
multiaddr = { package = "parity-multiaddr", version = "0.11.2", path = "../misc/multiaddr" }
23+
multiaddr = { version = "0.12.0" }
2424
multihash = { version = "0.13", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
2525
multistream-select = { version = "0.10", path = "../misc/multistream-select" }
2626
parking_lot = "0.11.0"

misc/multiaddr/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

misc/multiaddr/.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

misc/multiaddr/CHANGELOG.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

misc/multiaddr/Cargo.toml

Lines changed: 0 additions & 30 deletions
This file was deleted.

misc/multiaddr/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

misc/multiaddr/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Moved to https://github.com/multiformats/rust-multiaddr.

0 commit comments

Comments
 (0)