Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade snow to 0.8.0 #2269

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1601864
core/: Prepare libp2p-core v0.28.1 incl multiaddr v0.11.2
mxinden Mar 17, 2021
24b3e09
Update README.md (#2003)
rklaehn Mar 18, 2021
5a45f93
[identify] Implement /ipfs/id/push/1.0.0 alongside some refactoring. …
romanb Mar 18, 2021
63512e5
swarm/src/lib: Remove Deref and DerefMut impls on Swarm (#1995)
mxinden Mar 18, 2021
c8d69ab
[identify] Add configurable automatic push on listen addr changes. (#…
romanb Mar 22, 2021
a735e52
transports/dns: Require smallvec >= 1.6.1 (#2005)
mxinden Mar 22, 2021
ba90827
core: Update to asn1_der v0.7 (#2000)
mxinden Mar 22, 2021
987c244
Derive Clone, Debug. (#2007)
dvc94ch Mar 23, 2021
be2fb4e
Update mdns changelog.
Mar 23, 2021
7779b8e
swarm: Extend NetworkBehaviour callbacks. (#2011)
dvc94ch Mar 24, 2021
bb206bc
swarm/CHANGELOG: Add entry for NetworkBehaviour callbacks
mxinden Mar 24, 2021
bb2df42
build(deps): update derive_builder requirement from 0.9.0 to 0.10.0 (…
dependabot[bot] Apr 1, 2021
c0f74aa
transports/wasm-ext: Require at least js-sys v0.3.50 (#2023)
dvdplm Apr 1, 2021
a0bdc20
transports/wasm-ext: Prepare v0.28.1
mxinden Apr 1, 2021
a2e7749
src: Move introduction to new tutorial.rs (#2018)
mxinden Apr 1, 2021
2017c5c
transports/dns: Remove fqdn function optimization (#2027)
tomaka Apr 1, 2021
48f3f06
transports/dns: Prepave v0.28.1
mxinden Apr 1, 2021
7386fd7
README: Link to Code of Conduct (#2028)
mxinden Apr 6, 2021
385af35
Implement std::error::Error for InboundFailure and OutboundFailure (#…
thomaseizinger Apr 8, 2021
6fdfb44
examples/chat-tokio: Fix run example feature (#2037)
OnikenX Apr 9, 2021
7cf8ac0
protocols/identify: Emit Push event after successful identification p…
mxinden Apr 10, 2021
2d995a6
*: Fix redundant_semicolons warnings (#2039)
mxinden Apr 10, 2021
de261d5
.github: Only test benchmarks, don't run them (#2042)
mxinden Apr 10, 2021
b1b6f2b
build(deps): bump styfle/cancel-workflow-action from 0.8.0 to 0.9.0 (…
dependabot[bot] Apr 12, 2021
687145d
protocols: Derive debug for MemoryStoreConfig and IdentifyConfig (#2029)
dvc94ch Apr 12, 2021
8ccb96a
*: Drop generic wasm32-unknown-unknown support (#2038)
mxinden Apr 12, 2021
426a20c
Update yamux requirement from 0.8.0 to 0.9.0 (#1960)
dependabot[bot] Apr 12, 2021
05aa794
Derive debug for RelayConfig. (#2048)
dvc94ch Apr 12, 2021
807ce10
build(deps): bump actions/cache from v2.1.4 to v2.1.5 (#2050)
dependabot[bot] Apr 13, 2021
42441db
*: Prepare v0.37.0 release (#2049)
mxinden Apr 13, 2021
40c4287
*: Prepare libp2p-swarm-derive v0.23.0 and libp2p v0.37.1
mxinden Apr 13, 2021
59ad999
bump snow (and rand)
apopiak Oct 5, 2021
bf21eb4
bump libp2p-noise
apopiak Oct 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 32 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2

- name: Cache CARGO_HOME
uses: actions/[email protected].4
uses: actions/[email protected].5
with:
path: ~/.cargo
key: cargo-home-${{ hashFiles('Cargo.toml') }}

- name: Cache cargo build
uses: actions/[email protected].4
uses: actions/[email protected].5
with:
path: target
key: cargo-build-target-${{ hashFiles('Cargo.toml') }}
Expand All @@ -37,6 +37,9 @@ jobs:
- name: Run tests, with all features
run: cargo test --workspace --all-features

- name: Run benches, with all features
run: cargo test --workspace --benches --all-features

test-wasm:
name: Build on WASM
runs-on: ubuntu-latest
Expand All @@ -47,17 +50,24 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2

- name: Install Rust
- name: Install Rust wasm32-unknown-emscripten
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-emscripten
override: true

- name: Install Rust wasm32-wasi
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
target: wasm32-wasi
override: true

- name: Install a recent version of clang
Expand All @@ -71,21 +81,26 @@ jobs:
run: apt-get install -y cmake

- name: Cache CARGO_HOME
uses: actions/[email protected].4
uses: actions/[email protected].5
with:
path: ~/.cargo
key: cargo-home-${{ hashFiles('Cargo.toml') }}

- name: Cache cargo build
uses: actions/[email protected].4
uses: actions/[email protected].5
with:
path: target
key: wasm-cargo-build-target-${{ hashFiles('Cargo.toml') }}

- name: Build on WASM
- name: Build on wasm32-unknown-emscripten
# TODO: also run `cargo test`
# TODO: ideally we would build `--workspace`, but not all crates compile for WASM
run: cargo build --target=wasm32-unknown-unknown
run: cargo build --target=wasm32-unknown-emscripten

- name: Build on wasm32-wasi
# TODO: also run `cargo test`
# TODO: ideally we would build `--workspace`, but not all crates compile for WASM
run: cargo build --target=wasm32-wasi

check-rustdoc-links:
name: Check rustdoc intra-doc links
Expand All @@ -95,7 +110,7 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}

Expand All @@ -109,7 +124,7 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}

Expand All @@ -123,13 +138,13 @@ jobs:
components: clippy

- name: Cache CARGO_HOME
uses: actions/[email protected].4
uses: actions/[email protected].5
with:
path: ~/.cargo
key: cargo-home-${{ hashFiles('Cargo.toml') }}

- name: Cache cargo build
uses: actions/[email protected].4
uses: actions/[email protected].5
with:
path: target
key: cargo-build-target-${{ hashFiles('Cargo.toml') }}
Expand All @@ -140,41 +155,6 @@ jobs:
command: clippy
args: -- -A clippy::type_complexity -A clippy::pedantic -A clippy::style

run-benchmarks:
runs-on: ubuntu-latest
steps:

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

- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Cache CARGO_HOME
uses: actions/[email protected]
with:
path: ~/.cargo
key: cargo-home-${{ hashFiles('Cargo.toml') }}

- name: Cache cargo build
uses: actions/[email protected]
with:
path: target
key: cargo-build-target-${{ hashFiles('Cargo.toml') }}

- name: Run cargo bench
uses: actions-rs/cargo@v1
with:
command: bench
args: --workspace

integration-test:
name: Integration tests
runs-on: ubuntu-latest
Expand All @@ -183,20 +163,20 @@ jobs:
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2

- name: Cache CARGO_HOME
uses: actions/[email protected].4
uses: actions/[email protected].5
with:
path: ~/.cargo
key: cargo-home-${{ hashFiles('Cargo.toml') }}

- name: Cache cargo build
uses: actions/[email protected].4
uses: actions/[email protected].5
with:
path: target
key: cargo-build-target-${{ hashFiles('Cargo.toml') }}
Expand Down
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Individual crates

## Main APIs
Expand Down Expand Up @@ -42,6 +41,31 @@

# `libp2p` facade crate

## Version 0.37.1 [2021-04-14]

- Update individual crates.
- `libp2p-swarm-derive`

## Version 0.37.0 [2021-04-13]

- Update individual crates.
- `libp2p-core`
- `libp2p-dns`
- `libp2p-floodsub`
- `libp2p-gossipsub`
- `libp2p-kad`
- `libp2p-mdns`
- `libp2p-ping`
- `libp2p-relay`
- `libp2p-request-response`
- `libp2p-swarm`
- `libp2p-wasm-ext`
- `libp2p-yamux`

- Drop support for `wasm32-unknown-unknown` in favor of
`wasm32-unknown-emscripten` and `wasm32-wasi` [PR
2038](https://github.com/libp2p/rust-libp2p/pull/2038).

## Version 0.36.0 [2021-03-17]

- Consolidate top-level utility functions for constructing development
Expand Down
31 changes: 16 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "libp2p"
edition = "2018"
description = "Peer-to-peer networking library"
version = "0.36.0"
version = "0.37.1"
authors = ["Parity Technologies <[email protected]>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand Down Expand Up @@ -64,23 +64,23 @@ atomic = "0.5.0"
bytes = "1"
futures = "0.3.1"
lazy_static = "1.2"
libp2p-core = { version = "0.28.0", path = "core", default-features = false }
libp2p-floodsub = { version = "0.28.0", path = "protocols/floodsub", optional = true }
libp2p-gossipsub = { version = "0.29.0", path = "./protocols/gossipsub", optional = true }
libp2p-identify = { version = "0.28.0", path = "protocols/identify", optional = true }
libp2p-kad = { version = "0.29.0", path = "protocols/kad", optional = true }
libp2p-core = { version = "0.28.2", path = "core", default-features = false }
libp2p-floodsub = { version = "0.29.0", path = "protocols/floodsub", optional = true }
libp2p-gossipsub = { version = "0.30.0", path = "./protocols/gossipsub", optional = true }
libp2p-identify = { version = "0.29.0", path = "protocols/identify", optional = true }
libp2p-kad = { version = "0.30.0", path = "protocols/kad", optional = true }
libp2p-mplex = { version = "0.28.0", path = "muxers/mplex", optional = true }
libp2p-noise = { version = "0.30.0", path = "transports/noise", optional = true }
libp2p-ping = { version = "0.28.0", path = "protocols/ping", optional = true }
libp2p-ping = { version = "0.29.0", path = "protocols/ping", optional = true }
libp2p-plaintext = { version = "0.28.0", path = "transports/plaintext", optional = true }
libp2p-pnet = { version = "0.20.0", path = "transports/pnet", optional = true }
libp2p-relay = { version = "0.1.0", path = "protocols/relay", optional = true }
libp2p-request-response = { version = "0.10.0", path = "protocols/request-response", optional = true }
libp2p-swarm = { version = "0.28.0", path = "swarm" }
libp2p-swarm-derive = { version = "0.22.0", path = "swarm-derive" }
libp2p-relay = { version = "0.2.0", path = "protocols/relay", optional = true }
libp2p-request-response = { version = "0.11.0", path = "protocols/request-response", optional = true }
libp2p-swarm = { version = "0.29.0", path = "swarm" }
libp2p-swarm-derive = { version = "0.23.0", path = "swarm-derive" }
libp2p-uds = { version = "0.28.0", path = "transports/uds", optional = true }
libp2p-wasm-ext = { version = "0.28.0", path = "transports/wasm-ext", default-features = false, optional = true }
libp2p-yamux = { version = "0.31.0", path = "muxers/yamux", optional = true }
libp2p-wasm-ext = { version = "0.28.1", path = "transports/wasm-ext", default-features = false, optional = true }
libp2p-yamux = { version = "0.32.0", path = "muxers/yamux", optional = true }
multiaddr = { package = "parity-multiaddr", version = "0.11.2", path = "misc/multiaddr" }
parking_lot = "0.11.0"
pin-project = "1.0.0"
Expand All @@ -89,8 +89,8 @@ wasm-timer = "0.2.4"

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

Expand All @@ -100,6 +100,7 @@ env_logger = "0.8.1"
tokio = { version = "1.0.1", features = ["io-util", "io-std", "macros", "rt", "rt-multi-thread"] }

[workspace]
resolver = "2"
members = [
"core",
"misc/multiaddr",
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ The main components of this repository are structured as follows:
* `examples/`: Worked examples of built-in application protocols (see `protocols/`)
with common `Transport` configurations.

## Community Guidelines

The libp2p project operates under the [IPFS Code of
Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).

> tl;dr
>
> - Be respectful.
> - We're here to help: [email protected]
> - Abusive behavior is never tolerated.
> - Violations of this code may result in swift and permanent expulsion from the
> IPFS [and libp2p] community.
> - "Too long, didn't read" is not a valid excuse for not knowing what is in
> this document.

## Notable users

(open a pull request if you want your project to be added here)
Expand All @@ -64,3 +79,5 @@ The main components of this repository are structured as follows:
- https://github.com/rs-ipfs/rust-ipfs
- https://github.com/marcopoloprotocol/marcopolo
- https://github.com/ChainSafe/forest
- https://github.com/ipfs-rust/ipfs-embed
- https://www.actyx.com/developers/
8 changes: 8 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 0.28.2 [2021-04-13]

- Update dependencies.

# 0.28.1 [2021-03-17]

- Update `paritytech-multiaddr` to `>=v0.11.2`.

# 0.28.0 [2021-03-17]

- `Network::dial()` understands `/p2p` addresses and `Transport::dial`
Expand Down
6 changes: 3 additions & 3 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
name = "libp2p-core"
edition = "2018"
description = "Core traits and structs of libp2p"
version = "0.28.0"
version = "0.28.2"
authors = ["Parity Technologies <[email protected]>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
keywords = ["peer-to-peer", "libp2p", "networking"]
categories = ["network-programming", "asynchronous"]

[dependencies]
asn1_der = "0.6.1"
asn1_der = "0.7.4"
bs58 = "0.4.0"
ed25519-dalek = "1.0.1"
either = "1.5"
Expand All @@ -20,7 +20,7 @@ futures-timer = "3"
lazy_static = "1.2"
libsecp256k1 = { version = "0.3.1", optional = true }
log = "0.4"
multiaddr = { package = "parity-multiaddr", version = "0.11", path = "../misc/multiaddr" }
multiaddr = { package = "parity-multiaddr", version = "0.11.2", path = "../misc/multiaddr" }
multihash = { version = "0.13", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
multistream-select = { version = "0.10", path = "../misc/multistream-select" }
parking_lot = "0.11.0"
Expand Down
Loading