Skip to content

Commit 7400ab0

Browse files
committed
Merge branch 'master' of github.com:libp2p/rust-libp2p into protocols/autonat
2 parents 8650b97 + 9750951 commit 7400ab0

Some content is hidden

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

94 files changed

+2763
-2561
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,37 @@ jobs:
1010
test-desktop:
1111
name: Build and test
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
args: [
16+
"--no-default-features",
17+
"--all-features",
18+
"--benches --all-features",
19+
]
1320
steps:
1421

1522
- name: Cancel Previous Runs
1623
uses: styfle/[email protected]
1724
with:
1825
access_token: ${{ github.token }}
1926

20-
- uses: actions/[email protected].4
27+
- uses: actions/[email protected].5
2128

2229
- uses: Swatinem/[email protected]
30+
with:
31+
key: ${{ matrix.args }}
2332

24-
- name: Run tests, with no feature
25-
run: cargo test --workspace --no-default-features
26-
27-
- name: Run tests, with all features
28-
run: cargo test --workspace --all-features
29-
30-
- name: Run benches, with all features
31-
run: cargo test --workspace --benches --all-features
33+
- run: cargo test --workspace ${{ matrix.args }}
3234

3335
test-wasm:
3436
name: Build on WASM
3537
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
toolchain: [
41+
wasm32-unknown-emscripten,
42+
wasm32-wasi
43+
]
3644
container:
3745
image: rust
3846
env:
@@ -44,20 +52,13 @@ jobs:
4452
with:
4553
access_token: ${{ github.token }}
4654

47-
- uses: actions/[email protected]
48-
49-
- name: Install Rust wasm32-unknown-emscripten
50-
uses: actions-rs/[email protected]
51-
with:
52-
toolchain: stable
53-
target: wasm32-unknown-emscripten
54-
override: true
55+
- uses: actions/[email protected]
5556

56-
- name: Install Rust wasm32-wasi
57+
- name: Install Rust ${{ matrix.toolchain }}
5758
uses: actions-rs/[email protected]
5859
with:
5960
toolchain: stable
60-
target: wasm32-wasi
61+
target: ${{ matrix.toolchain }}
6162
override: true
6263

6364
- name: Install a recent version of clang
@@ -69,16 +70,13 @@ jobs:
6970
run: apt-get install -y cmake
7071

7172
- uses: Swatinem/[email protected]
73+
with:
74+
key: ${{ matrix.toolchain }}
7275

73-
- name: Build on wasm32-unknown-emscripten
74-
# TODO: also run `cargo test`
75-
# TODO: ideally we would build `--workspace`, but not all crates compile for WASM
76-
run: cargo build --target=wasm32-unknown-emscripten
77-
78-
- name: Build on wasm32-wasi
76+
- name: Build on ${{ matrix.toolchain }}
7977
# TODO: also run `cargo test`
8078
# TODO: ideally we would build `--workspace`, but not all crates compile for WASM
81-
run: cargo build --target=wasm32-wasi
79+
run: cargo build --target=${{ matrix.toolchain }}
8280

8381
check-rustdoc-links:
8482
name: Check rustdoc intra-doc links
@@ -92,7 +90,9 @@ jobs:
9290
with:
9391
access_token: ${{ github.token }}
9492

95-
- uses: actions/[email protected]
93+
- uses: actions/[email protected]
94+
95+
- uses: Swatinem/[email protected]
9696

9797
- name: Check rustdoc links
9898
run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items
@@ -106,7 +106,7 @@ jobs:
106106
with:
107107
access_token: ${{ github.token }}
108108

109-
- uses: actions/[email protected].4
109+
- uses: actions/[email protected].5
110110

111111
- uses: actions-rs/[email protected]
112112
with:
@@ -134,7 +134,7 @@ jobs:
134134
with:
135135
access_token: ${{ github.token }}
136136

137-
- uses: actions/[email protected].4
137+
- uses: actions/[email protected].5
138138

139139
- uses: Swatinem/[email protected]
140140

@@ -150,7 +150,7 @@ jobs:
150150
with:
151151
access_token: ${{ github.token }}
152152

153-
- uses: actions/[email protected].4
153+
- uses: actions/[email protected].5
154154

155155
- uses: actions-rs/[email protected]
156156
with:

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@
4242

4343
# `libp2p` facade crate
4444

45-
## Version 0.40.0 [unreleased]
45+
46+
## Version 0.40.0-rc.2 [2021-10-15]
47+
48+
- Update individual crates.
49+
- `libp2p-kad`
50+
51+
## Version 0.40.0-rc.1 [2021-10-15]
4652

4753
- Update individual crates.
4854
- `libp2p-core`

Cargo.toml

Lines changed: 26 additions & 26 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.40.0"
5+
version = "0.40.0-rc.2"
66
authors = ["Parity Technologies <[email protected]>"]
77
license = "MIT"
88
repository = "https://github.com/libp2p/rust-libp2p"
@@ -71,37 +71,37 @@ bytes = "1"
7171
futures = "0.3.1"
7272
lazy_static = "1.2"
7373
libp2p-autonat = { version = "0.20.0", path = "protocols/autonat", optional = true }
74-
libp2p-core = { version = "0.30.0", path = "core", default-features = false }
75-
libp2p-floodsub = { version = "0.31.0", path = "protocols/floodsub", optional = true }
76-
libp2p-gossipsub = { version = "0.33.0", path = "./protocols/gossipsub", optional = true }
77-
libp2p-identify = { version = "0.31.0", path = "protocols/identify", optional = true }
78-
libp2p-kad = { version = "0.32.0", path = "protocols/kad", optional = true }
79-
libp2p-metrics = { version = "0.1.0", path = "misc/metrics", optional = true }
80-
libp2p-mplex = { version = "0.30.0", path = "muxers/mplex", optional = true }
81-
libp2p-noise = { version = "0.33.0", path = "transports/noise", optional = true }
82-
libp2p-ping = { version = "0.31.0", path = "protocols/ping", optional = true }
83-
libp2p-plaintext = { version = "0.30.0", path = "transports/plaintext", optional = true }
84-
libp2p-pnet = { version = "0.22.0", path = "transports/pnet", optional = true }
85-
libp2p-relay = { version = "0.4.0", path = "protocols/relay", optional = true }
86-
libp2p-rendezvous = { version = "0.1.0", path = "protocols/rendezvous", optional = true }
87-
libp2p-request-response = { version = "0.13.0", path = "protocols/request-response", optional = true }
88-
libp2p-swarm = { version = "0.31.0", path = "swarm" }
89-
libp2p-swarm-derive = { version = "0.25.0", path = "swarm-derive" }
90-
libp2p-uds = { version = "0.30.0", path = "transports/uds", optional = true }
91-
libp2p-wasm-ext = { version = "0.30.0", path = "transports/wasm-ext", default-features = false, optional = true }
92-
libp2p-yamux = { version = "0.34.0", path = "muxers/yamux", optional = true }
93-
multiaddr = { version = "0.13.0" }
74+
libp2p-core = { version = "0.30.0-rc.1", path = "core", default-features = false }
75+
libp2p-floodsub = { version = "0.31.0-rc.1", path = "protocols/floodsub", optional = true }
76+
libp2p-gossipsub = { version = "0.33.0-rc.1", path = "./protocols/gossipsub", optional = true }
77+
libp2p-identify = { version = "0.31.0-rc.1", path = "protocols/identify", optional = true }
78+
libp2p-kad = { version = "0.32.0-rc.2", path = "protocols/kad", optional = true }
79+
libp2p-metrics = { version = "0.1.0-rc.1", path = "misc/metrics", optional = true }
80+
libp2p-mplex = { version = "0.30.0-rc.1", path = "muxers/mplex", optional = true }
81+
libp2p-noise = { version = "0.33.0-rc.1", path = "transports/noise", optional = true }
82+
libp2p-ping = { version = "0.31.0-rc.1", path = "protocols/ping", optional = true }
83+
libp2p-plaintext = { version = "0.30.0-rc.1", path = "transports/plaintext", optional = true }
84+
libp2p-pnet = { version = "0.22.0-rc.1", path = "transports/pnet", optional = true }
85+
libp2p-relay = { version = "0.4.0-rc.1", path = "protocols/relay", optional = true }
86+
libp2p-rendezvous = { version = "0.1.0-rc.1", path = "protocols/rendezvous", optional = true }
87+
libp2p-request-response = { version = "0.13.0-rc.1", path = "protocols/request-response", optional = true }
88+
libp2p-swarm = { version = "0.31.0-rc.1", path = "swarm" }
89+
libp2p-swarm-derive = { version = "0.25.0-rc.1", path = "swarm-derive" }
90+
libp2p-uds = { version = "0.30.0-rc.1", path = "transports/uds", optional = true }
91+
libp2p-wasm-ext = { version = "0.30.0-rc.1", path = "transports/wasm-ext", default-features = false, optional = true }
92+
libp2p-yamux = { version = "0.34.0-rc.1", path = "muxers/yamux", optional = true }
93+
multiaddr = { version = "0.13.0-rc.1" }
9494
parking_lot = "0.11.0"
9595
pin-project = "1.0.0"
9696
smallvec = "1.6.1"
9797
wasm-timer = "0.2.4"
9898

9999
[target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies]
100-
libp2p-deflate = { version = "0.30.0", path = "transports/deflate", optional = true }
101-
libp2p-dns = { version = "0.30.0", path = "transports/dns", optional = true, default-features = false }
102-
libp2p-mdns = { version = "0.32.0", path = "protocols/mdns", optional = true }
103-
libp2p-tcp = { version = "0.30.0", path = "transports/tcp", default-features = false, optional = true }
104-
libp2p-websocket = { version = "0.31.0", path = "transports/websocket", optional = true }
100+
libp2p-deflate = { version = "0.30.0-rc.1", path = "transports/deflate", optional = true }
101+
libp2p-dns = { version = "0.30.0-rc.1", path = "transports/dns", optional = true, default-features = false }
102+
libp2p-mdns = { version = "0.32.0-rc.1", path = "protocols/mdns", optional = true }
103+
libp2p-tcp = { version = "0.30.0-rc.1", path = "transports/tcp", default-features = false, optional = true }
104+
libp2p-websocket = { version = "0.31.0-rc.1", path = "transports/websocket", optional = true }
105105

106106
[dev-dependencies]
107107
async-std = { version = "1.6.2", features = ["attributes"] }

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
6666
> - "Too long, didn't read" is not a valid excuse for not knowing what is in
6767
> this document.
6868
69+
## Maintainers
70+
71+
- Max Inden ([@mxinden](https://github.com/mxinden/))
72+
- Thomas Eizinger ([@thomaseizinger](https://github.com/thomaseizinger))
73+
6974
## Notable users
7075

7176
(open a pull request if you want your project to be added here)

core/CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 0.30.0 [unreleased]
1+
# 0.30.0-rc.1 [2021-10-15]
22

33
- Add `ConnectionLimit::with_max_established` (see [PR 2137]).
44

@@ -36,6 +36,17 @@
3636
- Add `SignedEnvelope` and `PeerRecord` according to [RFC0002] and [RFC0003]
3737
(see [PR 2107]).
3838

39+
- Report `ListenersEvent::Closed` when dropping a listener in `ListenersStream::remove_listener`,
40+
return `bool` instead of `Result<(), ()>` (see [PR 2261]).
41+
42+
- Concurrently dial address candidates within a single dial attempt (see [PR 2248]) configured
43+
via `Network::with_dial_concurrency_factor`.
44+
45+
- On success of a single address, provide errors of the thus far failed dials via
46+
`NetworkEvent::ConnectionEstablished::outgoing`.
47+
48+
- On failure of all addresses, provide the errors via `NetworkEvent::DialError`.
49+
3950
[PR 2145]: https://github.com/libp2p/rust-libp2p/pull/2145
4051
[PR 2213]: https://github.com/libp2p/rust-libp2p/pull/2213
4152
[PR 2142]: https://github.com/libp2p/rust-libp2p/pull/2142
@@ -44,6 +55,8 @@
4455
[PR 2191]: https://github.com/libp2p/rust-libp2p/pull/2191
4556
[PR 2195]: https://github.com/libp2p/rust-libp2p/pull/2195
4657
[PR 2107]: https://github.com/libp2p/rust-libp2p/pull/2107
58+
[PR 2248]: https://github.com/libp2p/rust-libp2p/pull/2248
59+
[PR 2261]: https://github.com/libp2p/rust-libp2p/pull/2261
4760
[RFC0002]: https://github.com/libp2p/specs/blob/master/RFC/0002-signed-envelopes.md
4861
[RFC0003]: https://github.com/libp2p/specs/blob/master/RFC/0003-routing-records.md
4962

core/Cargo.toml

Lines changed: 6 additions & 5 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.30.0"
5+
version = "0.30.0-rc.1"
66
authors = ["Parity Technologies <[email protected]>"]
77
license = "MIT"
88
repository = "https://github.com/libp2p/rust-libp2p"
@@ -18,15 +18,15 @@ fnv = "1.0"
1818
futures = { version = "0.3.1", features = ["executor", "thread-pool"] }
1919
futures-timer = "3"
2020
lazy_static = "1.2"
21-
libsecp256k1 = { version = "0.6.0", optional = true }
21+
libsecp256k1 = { version = "0.7.0", optional = true }
2222
log = "0.4"
2323
multiaddr = { version = "0.13.0" }
2424
multihash = { version = "0.14", 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"
2727
pin-project = "1.0.0"
28-
prost = "0.8"
29-
rand = "0.7"
28+
prost = "0.9"
29+
rand = "0.8"
3030
rw-stream-sink = "0.2.0"
3131
sha2 = "0.9.1"
3232
smallvec = "1.6.1"
@@ -47,10 +47,11 @@ libp2p-noise = { path = "../transports/noise" }
4747
libp2p-tcp = { path = "../transports/tcp" }
4848
multihash = { version = "0.14", default-features = false, features = ["arb"] }
4949
quickcheck = "0.9.0"
50+
rand07 = { package = "rand", version = "0.7" }
5051
wasm-timer = "0.2"
5152

5253
[build-dependencies]
53-
prost-build = "0.8"
54+
prost-build = "0.9"
5455

5556
[features]
5657
default = ["secp256k1"]

0 commit comments

Comments
 (0)