*: Migrate to Rust 2021 edition (#2339)

Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
Dan Shields
2021-11-26 09:34:58 -07:00
committed by GitHub
parent fd417517ca
commit a7ed1d6b6e
54 changed files with 171 additions and 37 deletions

View File

@ -70,6 +70,10 @@
- `libp2p-yamux`
- `libp2p-mdns` (breaking compatibility with previous versions)
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
## Version 0.41.0 [2021-11-16]
- Update individual crates.

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Peer-to-peer networking library"
version = "0.42.0"
authors = ["Parity Technologies <admin@parity.io>"]
@ -87,7 +88,7 @@ libp2p-rendezvous = { version = "0.3.0", path = "protocols/rendezvous", optional
libp2p-request-response = { version = "0.15.0", path = "protocols/request-response", optional = true }
libp2p-swarm = { version = "0.33.0", path = "swarm" }
libp2p-swarm-derive = { version = "0.26.1", path = "swarm-derive" }
libp2p-uds = { version = "0.30.0", path = "transports/uds", optional = true }
libp2p-uds = { version = "0.31.0", path = "transports/uds", optional = true }
libp2p-wasm-ext = { version = "0.31.0", path = "transports/wasm-ext", default-features = false, optional = true }
libp2p-yamux = { version = "0.35.0", path = "muxers/yamux", optional = true }
multiaddr = { version = "0.13.0" }
@ -111,7 +112,6 @@ structopt = "0.3.21"
tokio = { version = "1.0.1", features = ["io-util", "io-std", "macros", "rt", "rt-multi-thread"] }
[workspace]
resolver = "2"
members = [
"core",
"misc/metrics",

View File

@ -1,8 +1,13 @@
# 0.31.0 [unreleased]
- Update dependencies.
- Report concrete connection IDs in `NetworkEvent::ConnectionEstablished` and
`NetworkEvent::ConnectionClosed` (see [PR 2350]).
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
[PR 2350]: https://github.com/libp2p/rust-libp2p/pull/2350/
# 0.30.1 [2021-11-16]

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-core"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Core traits and structs of libp2p"
version = "0.31.0"
authors = ["Parity Technologies <admin@parity.io>"]
@ -23,7 +24,7 @@ libsecp256k1 = { version = "0.7.0", optional = true }
log = "0.4"
multiaddr = { version = "0.13.0" }
multihash = { version = "0.14", default-features = false, features = ["std", "multihash-impl", "identity", "sha2"] }
multistream-select = { version = "0.10", path = "../misc/multistream-select" }
multistream-select = { version = "0.11", path = "../misc/multistream-select" }
parking_lot = "0.11.0"
pin-project = "1.0.0"
prost = "0.9"

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.2.0 [2021-11-16]
- Include gossipsub metrics (see [PR 2316]).

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-metrics"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Metrics for libp2p"
version = "0.3.0"
authors = ["Max Inden <mail@max-inden.de>"]

View File

@ -1,3 +1,9 @@
# 0.11.0 [unreleased]
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.10.4 [2021-11-01]
- Implement `From<io::Error> for ProtocolError` instead of `Into`.

View File

@ -1,13 +1,14 @@
[package]
name = "multistream-select"
edition = "2021"
rust-version = "1.56.1"
description = "Multistream-select negotiation protocol for libp2p"
version = "0.10.4"
version = "0.11.0"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
keywords = ["peer-to-peer", "libp2p", "networking"]
categories = ["network-programming", "asynchronous"]
edition = "2018"
[dependencies]
bytes = "1"

View File

@ -1,6 +1,7 @@
[package]
name = "peer-id-generator"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
version = "0.1.0"
description = "Generate peer ids that are prefixed with a specific string"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -4,6 +4,10 @@
- Add `fn set_protocol_name(&mut self, protocol_name: &'static [u8])` to MplexConfig
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.30.0 [2021-11-01]
- Make default features of `libp2p-core` optional.

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-mplex"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Mplex multiplexing protocol for libp2p"
version = "0.31.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.34.0 [2021-11-01]
- Make default features of `libp2p-core` optional.

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-yamux"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Yamux multiplexing protocol for libp2p"
version = "0.35.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.32.0 [2021-11-16]
- Update dependencies.

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-floodsub"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Floodsub protocol for libp2p"
version = "0.33.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.34.0 [2021-11-16]
- Add topic and mesh metrics (see [PR 2316]).

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-gossipsub"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Gossipsub protocol for libp2p"
version = "0.35.0"
authors = ["Age Manning <Age@AgeManning.com>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.32.0 [2021-11-16]
- Use `futures-timer` instead of `wasm-timer` (see [PR 2245]).

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-identify"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Nodes identifcation protocol for libp2p"
version = "0.33.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.33.0 [2021-11-16]
- Use `instant` and `futures-timer` instead of `wasm-timer` (see [PR 2245]).

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-kad"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Kademlia protocol for libp2p"
version = "0.34.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -9,6 +9,10 @@
valid peer ID. Thus they will be unable to discover nodes running this new
version of `libp2p-mdns`.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
[PR 2311]: https://github.com/libp2p/rust-libp2p/pull/2311/
# 0.33.0 [2021-11-16]

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-mdns"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
version = "0.34.0"
description = "Implementation of the libp2p mDNS discovery method"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.32.0 [2021-11-16]
- Use `instant` and `futures-timer` instead of `wasm-timer` (see [PR 2245]).

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-ping"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Ping protocol for libp2p"
version = "0.33.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.5.0 [2021-11-16]
- Use `instant` instead of `wasm-timer` (see [PR 2245]).

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-relay"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Communications relaying for libp2p"
version = "0.6.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.2.0 [2021-11-16]
- Use `instant` and `futures-timer` instead of `wasm-timer` (see [PR 2245]).

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-rendezvous"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Rendezvous protocol for libp2p"
version = "0.3.0"
authors = ["The COMIT guys <hello@comit.network>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.14.0 [2021-11-16]
- Use `instant` instead of `wasm-timer` (see [PR 2245]).

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-request-response"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Generic Request/Response Protocols"
version = "0.15.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -46,7 +46,8 @@
//! name = "rust-libp2p-tutorial"
//! version = "0.1.0"
//! authors = ["Max Inden <mail@max-inden.de>"]
//! edition = "2018"
//! edition = "2021"
//! rust-version = "1.56.1"
//!
//! [dependencies]
//! libp2p = "<insert-current-version-here>"

View File

@ -2,6 +2,9 @@
- Remove unnecessary clone of error in `inject_dial_failure` (see [PR 2349]).
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
[PR 2349]: https://github.com/libp2p/rust-libp2p/pull/2349
# 0.26.0 [2021-11-16]

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-swarm-derive"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Procedural macros of libp2p-core"
version = "0.26.1"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -1,9 +1,12 @@
# 0.33.0 [unreleased]
- Patch reporting on banned peers and their non-banned and banned connections (see [PR 2350]).
- Patch reporting on banned peers and their non-banned and banned connections (see [PR 2350]).
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
[PR 2350]: https://github.com/libp2p/rust-libp2p/pull/2350
# 0.32.0 [2021-11-16]

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-swarm"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "The libp2p swarm"
version = "0.33.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.30.0 [2021-11-01]
- Make default features of `libp2p-core` optional.

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-deflate"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Deflate encryption protocol for libp2p"
version = "0.31.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.30.0 [2021-11-01]
- Make default features of `libp2p-core` optional.

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-dns"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "DNS transport implementation for libp2p"
version = "0.31.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.33.0 [2021-11-01]
- Make default features of `libp2p-core` optional.

View File

@ -1,11 +1,12 @@
[package]
name = "libp2p-noise"
edition = "2021"
rust-version = "1.56.1"
description = "Cryptographic handshake protocol using the noise framework."
version = "0.34.0"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
edition = "2018"
[dependencies]
bytes = "1"

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.30.0 [2021-11-01]
- Make default features of `libp2p-core` optional.

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-plaintext"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Plaintext encryption dummy protocol for libp2p"
version = "0.31.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.21.0 [2021-05-17]
- Update dependencies.

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-pnet"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Private swarm support for libp2p"
version = "0.22.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.30.0 [2021-11-01]
- Make default features of `libp2p-core` optional.

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-tcp"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "TCP/IP transport protocol for libp2p"
version = "0.31.0"
authors = ["Parity Technologies <admin@parity.io>"]

View File

@ -1,10 +1,16 @@
# 0.31.0 [unreleased]
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.30.0 [2021-11-01]
- Make default features of `libp2p-core` optional.
[PR 2181](https://github.com/libp2p/rust-libp2p/pull/2181)
- Update dependencies.
# 0.29.0 [2021-07-12]
- Update dependencies.

View File

@ -1,8 +1,9 @@
[package]
name = "libp2p-uds"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "Unix domain sockets transport for libp2p"
version = "0.30.0"
version = "0.31.0"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# 0.30.0 [2021-11-01]
- Make default features of `libp2p-core` optional.

View File

@ -1,9 +1,10 @@
[package]
name = "libp2p-wasm-ext"
edition = "2021"
rust-version = "1.56.1"
description = "Allows passing in an external transport in a WASM environment"
version = "0.31.0"
authors = ["Pierre Krieger <pierre.krieger1708@gmail.com>"]
edition = "2018"
description = "Allows passing in an external transport in a WASM environment"
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
keywords = ["peer-to-peer", "libp2p", "networking"]

View File

@ -2,6 +2,10 @@
- Update dependencies.
- Migrate to Rust edition 2021 (see [PR 2339]).
[PR 2339]: https://github.com/libp2p/rust-libp2p/pull/2339
# v0.32.0 [2021-11-16]
- Handle websocket CLOSE with reason code (see [PR 2085]).

View File

@ -1,6 +1,7 @@
[package]
name = "libp2p-websocket"
edition = "2018"
edition = "2021"
rust-version = "1.56.1"
description = "WebSocket transport for libp2p"
version = "0.33.0"
authors = ["Parity Technologies <admin@parity.io>"]