-
Notifications
You must be signed in to change notification settings - Fork 961
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
1,582 additions
and
911 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,14 +101,45 @@ jobs: | |
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Install nightly Rust | ||
# TODO: intra-doc links are available on nightly only | ||
# see https://doc.rust-lang.org/nightly/rustdoc/lints.html#intra_doc_link_resolution_failure | ||
run: rustup default nightly-2020-09-17 | ||
|
||
- name: Check rustdoc links | ||
run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items | ||
|
||
check-clippy: | ||
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 | ||
components: clippy | ||
|
||
- name: Cache CARGO_HOME | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cargo | ||
key: cargo-home-${{ hashFiles('Cargo.toml') }} | ||
|
||
- name: Cache cargo build | ||
uses: actions/cache@v2 | ||
with: | ||
path: target | ||
key: cargo-build-target-${{ hashFiles('Cargo.toml') }} | ||
|
||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: -- -A clippy::mutable_key_type -A clippy::type_complexity | ||
|
||
integration-test: | ||
name: Integration tests | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "libp2p" | ||
edition = "2018" | ||
description = "Peer-to-peer networking library" | ||
version = "0.30.1" | ||
version = "0.32.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
|
@@ -17,7 +17,7 @@ default = [ | |
"identify", | ||
"kad", | ||
"gossipsub", | ||
"mdns-async-std", | ||
"mdns", | ||
"mplex", | ||
"noise", | ||
"ping", | ||
|
@@ -37,8 +37,7 @@ floodsub = ["libp2p-floodsub"] | |
identify = ["libp2p-identify"] | ||
kad = ["libp2p-kad"] | ||
gossipsub = ["libp2p-gossipsub"] | ||
mdns-async-std = ["libp2p-mdns", "libp2p-mdns/async-std"] | ||
mdns-tokio = ["libp2p-mdns", "libp2p-mdns/tokio"] | ||
mdns = ["libp2p-mdns"] | ||
mplex = ["libp2p-mplex"] | ||
noise = ["libp2p-noise"] | ||
ping = ["libp2p-ping"] | ||
|
@@ -62,8 +61,8 @@ atomic = "0.5.0" | |
bytes = "0.5" | ||
futures = "0.3.1" | ||
lazy_static = "1.2" | ||
libp2p-core = { version = "0.25.0", path = "core" } | ||
libp2p-core-derive = { version = "0.20.2", path = "misc/core-derive" } | ||
libp2p-core = { version = "0.25.2", path = "core" } | ||
libp2p-core-derive = { version = "0.21.0", path = "misc/core-derive" } | ||
libp2p-floodsub = { version = "0.25.0", path = "protocols/floodsub", optional = true } | ||
libp2p-gossipsub = { version = "0.25.0", path = "./protocols/gossipsub", optional = true } | ||
libp2p-identify = { version = "0.25.0", path = "protocols/identify", optional = true } | ||
|
@@ -78,7 +77,7 @@ libp2p-swarm = { version = "0.25.0", path = "swarm" } | |
libp2p-uds = { version = "0.25.0", path = "transports/uds", optional = true } | ||
libp2p-wasm-ext = { version = "0.25.0", path = "transports/wasm-ext", optional = true } | ||
libp2p-yamux = { version = "0.28.0", path = "muxers/yamux", optional = true } | ||
multiaddr = { package = "parity-multiaddr", version = "0.9.4", path = "misc/multiaddr" } | ||
multiaddr = { package = "parity-multiaddr", version = "0.10.0", path = "misc/multiaddr" } | ||
parking_lot = "0.11.0" | ||
pin-project = "1.0.0" | ||
smallvec = "1.0" | ||
|
@@ -87,8 +86,8 @@ wasm-timer = "0.2.4" | |
[target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies] | ||
libp2p-deflate = { version = "0.25.0", path = "protocols/deflate", optional = true } | ||
libp2p-dns = { version = "0.25.0", path = "transports/dns", optional = true } | ||
libp2p-mdns = { version = "0.25.0", path = "protocols/mdns", optional = true } | ||
libp2p-tcp = { version = "0.25.0", path = "transports/tcp", optional = true } | ||
libp2p-mdns = { version = "0.26.0", path = "protocols/mdns", optional = true } | ||
libp2p-tcp = { version = "0.25.1", path = "transports/tcp", optional = true } | ||
libp2p-websocket = { version = "0.26.0", path = "transports/websocket", optional = true } | ||
|
||
[dev-dependencies] | ||
|
@@ -125,4 +124,4 @@ members = [ | |
|
||
[[example]] | ||
name = "chat-tokio" | ||
required-features = ["tcp-tokio", "mdns-tokio"] | ||
required-features = ["tcp-tokio", "mdns"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "libp2p-core" | ||
edition = "2018" | ||
description = "Core traits and structs of libp2p" | ||
version = "0.25.0" | ||
version = "0.25.2" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
|
@@ -21,9 +21,9 @@ futures-timer = "3" | |
lazy_static = "1.2" | ||
libsecp256k1 = { version = "0.3.1", optional = true } | ||
log = "0.4" | ||
multiaddr = { package = "parity-multiaddr", version = "0.9.4", path = "../misc/multiaddr" } | ||
multiaddr = { package = "parity-multiaddr", version = "0.10.0", path = "../misc/multiaddr" } | ||
multihash = { version = "0.13", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] } | ||
multistream-select = { version = "0.8.5", path = "../misc/multistream-select" } | ||
multistream-select = { version = "0.9.1", path = "../misc/multistream-select" } | ||
parking_lot = "0.11.0" | ||
pin-project = "1.0.0" | ||
prost = "0.6.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.