Skip to content

Commit e8207f9

Browse files
committed
Merge branch 'master' into anton/webrtc-transport
2 parents 64d60e9 + d0da3a0 commit e8207f9

File tree

125 files changed

+2938
-2937
lines changed

Some content is hidden

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

125 files changed

+2938
-2937
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121

2222
- name: Cancel Previous Runs
23-
uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
23+
uses: styfle/cancel-workflow-action@bb6001c4ea612bf59c3abfc4756fbceee4f870c7 # 0.10.0
2424
with:
2525
access_token: ${{ github.token }}
2626

@@ -52,7 +52,7 @@ jobs:
5252
steps:
5353

5454
- name: Cancel Previous Runs
55-
uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
55+
uses: styfle/cancel-workflow-action@bb6001c4ea612bf59c3abfc4756fbceee4f870c7 # 0.10.0
5656
with:
5757
access_token: ${{ github.token }}
5858

@@ -87,7 +87,7 @@ jobs:
8787
steps:
8888

8989
- name: Cancel Previous Runs
90-
uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
90+
uses: styfle/cancel-workflow-action@bb6001c4ea612bf59c3abfc4756fbceee4f870c7 # 0.10.0
9191
with:
9292
access_token: ${{ github.token }}
9393

@@ -109,7 +109,7 @@ jobs:
109109
steps:
110110

111111
- name: Cancel Previous Runs
112-
uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
112+
uses: styfle/cancel-workflow-action@bb6001c4ea612bf59c3abfc4756fbceee4f870c7 # 0.10.0
113113
with:
114114
access_token: ${{ github.token }}
115115

@@ -135,7 +135,7 @@ jobs:
135135
steps:
136136

137137
- name: Cancel Previous Runs
138-
uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
138+
uses: styfle/cancel-workflow-action@bb6001c4ea612bf59c3abfc4756fbceee4f870c7 # 0.10.0
139139
with:
140140
access_token: ${{ github.token }}
141141

@@ -157,7 +157,7 @@ jobs:
157157
steps:
158158

159159
- name: Cancel Previous Runs
160-
uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1
160+
uses: styfle/cancel-workflow-action@bb6001c4ea612bf59c3abfc4756fbceee4f870c7 # 0.10.0
161161
with:
162162
access_token: ${{ github.token }}
163163

CHANGELOG.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,57 @@
4343

4444
# `libp2p` facade crate
4545

46-
# 0.46.0 [unreleased]
46+
# 0.47.0 [unreleased]
47+
48+
- Update to [`libp2p-dcutr` `v0.5.0`](protocols/dcutr/CHANGELOG.md#050).
49+
50+
- Update to [`libp2p-rendezvous` `v0.8.0`](protocols/rendezvous/CHANGELOG.md#080).
51+
52+
- Update to [`libp2p-ping` `v0.38.0`](protocols/ping/CHANGELOG.md#0380).
53+
54+
- Update to [`libp2p-identify` `v0.38.0`](protocols/identify/CHANGELOG.md#0380).
55+
56+
- Update to [`libp2p-floodsub` `v0.38.0`](protocols/floodsub/CHANGELOG.md#0380).
57+
58+
- Update to [`libp2p-relay` `v0.11.0`](protocols/relay/CHANGELOG.md#0110).
59+
60+
- Update to [`libp2p-metrics` `v0.8.0`](misc/metrics/CHANGELOG.md#080).
61+
62+
- Update to [`libp2p-kad` `v0.39.0`](protocols/kad/CHANGELOG.md#0390).
63+
64+
- Update to [`libp2p-autonat` `v0.6.0`](protocols/autonat/CHANGELOG.md#060).
65+
66+
- Update to [`libp2p-request-response` `v0.20.0`](protocols/request-response/CHANGELOG.md#0200).
67+
68+
- Update to [`libp2p-swarm` `v0.38.0`](swarm/CHANGELOG.md#0380).
69+
70+
# 0.46.1
71+
72+
- Update to `libp2p-derive` [`v0.28.0`](swarm-derive/CHANGELOG.md#0280).
73+
74+
# 0.46.0
75+
4776
- Semver bump Rust from `1.56.1` to `1.60.0` . See [PR 2646].
4877
- Added weak dependencies for features. See [PR 2646].
4978
- Update individual crates.
79+
- Update to [`libp2p-autonat` `v0.5.0`](protocols/autonat/CHANGELOG.md#050).
80+
- Update to [`libp2p-core` `v0.34.0`](core/CHANGELOG.md#0340).
81+
- Update to [`libp2p-dcutr` `v0.4.0`](protocols/dcutr/CHANGELOG.md#040).
82+
- Update to [`libp2p-floodsub` `v0.37.0`](protocols/floodsub/CHANGELOG.md#0370).
83+
- Update to [`libp2p-identify` `v0.37.0`](protocols/identify/CHANGELOG.md#0370).
84+
- Update to [`libp2p-kad` `v0.38.0`](protocols/kad/CHANGELOG.md#0380).
85+
- Update to [`libp2p-metrics` `v0.7.0`](misc/metrics/CHANGELOG.md#070).
5086
- Update to [`libp2p-mplex` `v0.34.0`](muxers/mplex/CHANGELOG.md).
87+
- Update to [`libp2p-noise` `v0.37.0`](transports/noise/CHANGELOG.md#0370).
88+
- Update to [`libp2p-ping` `v0.37.0`](protocols/ping/CHANGELOG.md#0370).
89+
- Update to [`libp2p-plaintext` `v0.34.0`](transports/plaintext/CHANGELOG.md#0340).
90+
- Update to [`libp2p-relay` `v0.10.0`](protocols/relay/CHANGELOG.md#0100).
91+
- Update to [`libp2p-rendezvous` `v0.7.0`](protocols/rendezvous/CHANGELOG.md#070).
92+
- Update to [`libp2p-request-response` `v0.19.0`](protocols/request-response/CHANGELOG.md#0190).
93+
- Update to [`libp2p-swarm` `v0.37.0`](swarm/CHANGELOG.md#0370).
94+
- Update to [`libp2p-wasm-ext` `v0.34.0`](transports/wasm-ext/CHANGELOG.md#0340).
95+
- Update to [`libp2p-yamux` `v0.38.0`](muxers/yamux/CHANGELOG.md#0380).
96+
- Update to `libp2p-uds` [`v0.33.0`](transports/uds/CHANGELOG.md).
5197

5298
[PR 2646]: https://github.com/libp2p/rust-libp2p/pull/2646
5399

Cargo.toml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p"
33
edition = "2021"
44
rust-version = "1.60.0"
55
description = "Peer-to-peer networking library"
6-
version = "0.46.0"
6+
version = "0.47.0"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"
@@ -35,6 +35,7 @@ default = [
3535
"websocket",
3636
"yamux",
3737
]
38+
3839
autonat = ["dep:libp2p-autonat"]
3940
dcutr = ["dep:libp2p-dcutr", "libp2p-metrics?/dcutr"]
4041
deflate = ["dep:libp2p-deflate"]
@@ -77,42 +78,42 @@ getrandom = "0.2.3" # Explicit dependency to be used in `wasm-bindgen` feature
7778
instant = "0.1.11" # Explicit dependency to be used in `wasm-bindgen` feature
7879
lazy_static = "1.2"
7980

80-
libp2p-autonat = { version = "0.4.0", path = "protocols/autonat", optional = true }
81-
libp2p-core = { version = "0.33.0", path = "core", default-features = false }
82-
libp2p-dcutr = { version = "0.3.1", path = "protocols/dcutr", optional = true }
83-
libp2p-floodsub = { version = "0.36.0", path = "protocols/floodsub", optional = true }
84-
libp2p-identify = { version = "0.36.1", path = "protocols/identify", optional = true }
85-
libp2p-kad = { version = "0.37.1", path = "protocols/kad", optional = true }
86-
libp2p-metrics = { version = "0.6.0", path = "misc/metrics", optional = true }
81+
libp2p-autonat = { version = "0.6.0", path = "protocols/autonat", optional = true }
82+
libp2p-core = { version = "0.34.0", path = "core", default-features = false }
83+
libp2p-dcutr = { version = "0.5.0", path = "protocols/dcutr", optional = true }
84+
libp2p-floodsub = { version = "0.38.0", path = "protocols/floodsub", optional = true }
85+
libp2p-identify = { version = "0.38.0", path = "protocols/identify", optional = true }
86+
libp2p-kad = { version = "0.39.0", path = "protocols/kad", optional = true }
87+
libp2p-metrics = { version = "0.8.0", path = "misc/metrics", optional = true }
8788
libp2p-mplex = { version = "0.34.0", path = "muxers/mplex", optional = true }
88-
libp2p-noise = { version = "0.36.0", path = "transports/noise", optional = true }
89-
libp2p-ping = { version = "0.36.0", path = "protocols/ping", optional = true }
90-
libp2p-plaintext = { version = "0.33.0", path = "transports/plaintext", optional = true }
89+
libp2p-noise = { version = "0.37.0", path = "transports/noise", optional = true }
90+
libp2p-ping = { version = "0.38.0", path = "protocols/ping", optional = true }
91+
libp2p-plaintext = { version = "0.34.0", path = "transports/plaintext", optional = true }
9192
libp2p-pnet = { version = "0.22.0", path = "transports/pnet", optional = true }
92-
libp2p-relay = { version = "0.9.1", path = "protocols/relay", optional = true }
93-
libp2p-rendezvous = { version = "0.6.0", path = "protocols/rendezvous", optional = true }
94-
libp2p-request-response = { version = "0.18.0", path = "protocols/request-response", optional = true }
95-
libp2p-swarm = { version = "0.36.1", path = "swarm" }
96-
libp2p-swarm-derive = { version = "0.27.0", path = "swarm-derive" }
97-
libp2p-uds = { version = "0.32.0", path = "transports/uds", optional = true }
98-
libp2p-wasm-ext = { version = "0.33.0", path = "transports/wasm-ext", default-features = false, optional = true }
99-
libp2p-yamux = { version = "0.37.0", path = "muxers/yamux", optional = true }
93+
libp2p-relay = { version = "0.11.0", path = "protocols/relay", optional = true }
94+
libp2p-rendezvous = { version = "0.8.0", path = "protocols/rendezvous", optional = true }
95+
libp2p-request-response = { version = "0.20.0", path = "protocols/request-response", optional = true }
96+
libp2p-swarm = { version = "0.38.0", path = "swarm" }
97+
libp2p-swarm-derive = { version = "0.28.0", path = "swarm-derive" }
98+
libp2p-uds = { version = "0.33.0", path = "transports/uds", optional = true }
99+
libp2p-wasm-ext = { version = "0.34.0", path = "transports/wasm-ext", default-features = false, optional = true }
100100
libp2p-webrtc = { version = "0.1.0", path = "transports/webrtc", optional = true }
101+
libp2p-yamux = { version = "0.38.0", path = "muxers/yamux", optional = true }
101102
multiaddr = { version = "0.14.0" }
102103
parking_lot = "0.12.0"
103104
pin-project = "1.0.0"
104105
rand = "0.7.3" # Explicit dependency to be used in `wasm-bindgen` feature
105106
smallvec = "1.6.1"
106107

107108
[target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies]
108-
libp2p-deflate = { version = "0.33.0", path = "transports/deflate", optional = true }
109-
libp2p-dns = { version = "0.33.0", path = "transports/dns", optional = true, default-features = false }
110-
libp2p-mdns = { version = "0.37.0", path = "protocols/mdns", optional = true }
111-
libp2p-tcp = { version = "0.33.0", path = "transports/tcp", default-features = false, optional = true }
112-
libp2p-websocket = { version = "0.35.0", path = "transports/websocket", optional = true }
109+
libp2p-deflate = { version = "0.34.0", path = "transports/deflate", optional = true }
110+
libp2p-dns = { version = "0.34.0", path = "transports/dns", optional = true, default-features = false }
111+
libp2p-mdns = { version = "0.39.0", path = "protocols/mdns", optional = true }
112+
libp2p-tcp = { version = "0.34.0", path = "transports/tcp", default-features = false, optional = true }
113+
libp2p-websocket = { version = "0.36.0", path = "transports/websocket", optional = true }
113114

114115
[target.'cfg(not(target_os = "unknown"))'.dependencies]
115-
libp2p-gossipsub = { version = "0.38.0", path = "protocols/gossipsub", optional = true }
116+
libp2p-gossipsub = { version = "0.40.0", path = "protocols/gossipsub", optional = true }
116117

117118
# TODO: use upstream once Protocol for WebRTC is there.
118119
[patch.crates-io]

core/CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
# 0.33.1 - unreleased
1+
# 0.34.0
22

33
- Introduce `StreamMuxerEvent::map_inbound_stream`. See [PR 2691].
4+
- Remove `{read,write,flush,shutdown,destroy}_substream` functions from `StreamMuxer` trait
5+
in favor of forcing `StreamMuxer::Substream` to implement `AsyncRead + AsyncWrite`. See [PR 2707].
6+
- Replace `Into<std::io::Error>` bound on `StreamMuxer::Error` with `std::error::Error`. See [PR 2710].
7+
8+
- Remove the concept of individual `Transport::Listener` streams from `Transport`.
9+
Instead the `Transport` is polled directly via `Transport::poll`. The
10+
`Transport` is now responsible for driving its listeners. See [PR 2652].
411

512
[PR 2691]: https://github.com/libp2p/rust-libp2p/pull/2691
13+
[PR 2707]: https://github.com/libp2p/rust-libp2p/pull/2707
14+
[PR 2710]: https://github.com/libp2p/rust-libp2p/pull/2710
15+
[PR 2652]: https://github.com/libp2p/rust-libp2p/pull/2652
616

717
# 0.33.0
818

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-core"
33
edition = "2021"
44
rust-version = "1.56.1"
55
description = "Core traits and structs of libp2p"
6-
version = "0.33.1"
6+
version = "0.34.0"
77
authors = ["Parity Technologies <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

core/src/connection.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,6 @@ impl std::ops::Add<usize> for ConnectionId {
4343
}
4444
}
4545

46-
/// The ID of a single listener.
47-
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
48-
pub struct ListenerId(u64);
49-
50-
impl ListenerId {
51-
/// Creates a `ListenerId` from a non-negative integer.
52-
pub fn new(id: u64) -> Self {
53-
Self(id)
54-
}
55-
}
56-
57-
impl std::ops::Add<u64> for ListenerId {
58-
type Output = Self;
59-
60-
fn add(self, other: u64) -> Self {
61-
Self(self.0 + other)
62-
}
63-
}
64-
6546
/// The endpoint roles associated with a peer-to-peer communication channel.
6647
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
6748
pub enum Endpoint {

0 commit comments

Comments
 (0)