From a7ed1d6b6e220a278019052a64ec9717cc3e2aae Mon Sep 17 00:00:00 2001 From: Dan Shields <35669742+NukeManDan@users.noreply.github.com> Date: Fri, 26 Nov 2021 09:34:58 -0700 Subject: [PATCH] *: Migrate to Rust 2021 edition (#2339) Co-authored-by: Max Inden --- CHANGELOG.md | 4 ++++ Cargo.toml | 6 +++--- core/CHANGELOG.md | 5 +++++ core/Cargo.toml | 5 +++-- misc/metrics/CHANGELOG.md | 4 ++++ misc/metrics/Cargo.toml | 3 ++- misc/multistream-select/CHANGELOG.md | 6 ++++++ misc/multistream-select/Cargo.toml | 5 +++-- misc/peer-id-generator/Cargo.toml | 3 ++- muxers/mplex/CHANGELOG.md | 4 ++++ muxers/mplex/Cargo.toml | 3 ++- muxers/yamux/CHANGELOG.md | 4 ++++ muxers/yamux/Cargo.toml | 3 ++- protocols/floodsub/CHANGELOG.md | 4 ++++ protocols/floodsub/Cargo.toml | 3 ++- protocols/gossipsub/CHANGELOG.md | 4 ++++ protocols/gossipsub/Cargo.toml | 3 ++- protocols/identify/CHANGELOG.md | 4 ++++ protocols/identify/Cargo.toml | 3 ++- protocols/kad/CHANGELOG.md | 4 ++++ protocols/kad/Cargo.toml | 3 ++- protocols/mdns/CHANGELOG.md | 4 ++++ protocols/mdns/Cargo.toml | 3 ++- protocols/ping/CHANGELOG.md | 4 ++++ protocols/ping/Cargo.toml | 3 ++- protocols/relay/CHANGELOG.md | 4 ++++ protocols/relay/Cargo.toml | 3 ++- protocols/rendezvous/CHANGELOG.md | 4 ++++ protocols/rendezvous/Cargo.toml | 3 ++- protocols/request-response/CHANGELOG.md | 4 ++++ protocols/request-response/Cargo.toml | 3 ++- src/tutorial.rs | 3 ++- swarm-derive/CHANGELOG.md | 3 +++ swarm-derive/Cargo.toml | 3 ++- swarm/CHANGELOG.md | 5 ++++- swarm/Cargo.toml | 3 ++- transports/deflate/CHANGELOG.md | 4 ++++ transports/deflate/Cargo.toml | 3 ++- transports/dns/CHANGELOG.md | 4 ++++ transports/dns/Cargo.toml | 3 ++- transports/noise/CHANGELOG.md | 4 ++++ transports/noise/Cargo.toml | 3 ++- transports/plaintext/CHANGELOG.md | 4 ++++ transports/plaintext/Cargo.toml | 3 ++- transports/pnet/CHANGELOG.md | 4 ++++ transports/pnet/Cargo.toml | 3 ++- transports/tcp/CHANGELOG.md | 4 ++++ transports/tcp/Cargo.toml | 3 ++- transports/uds/CHANGELOG.md | 10 ++++++++-- transports/uds/Cargo.toml | 5 +++-- transports/wasm-ext/CHANGELOG.md | 4 ++++ transports/wasm-ext/Cargo.toml | 5 +++-- transports/websocket/CHANGELOG.md | 4 ++++ transports/websocket/Cargo.toml | 3 ++- 54 files changed, 171 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c0448c85e1..fbf0905cba0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/Cargo.toml b/Cargo.toml index 64f61ec3b0c..e3d17d8029d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] @@ -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", diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index e57eb6d3bf2..eacb3d734b2 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -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] diff --git a/core/Cargo.toml b/core/Cargo.toml index f34fb0c9b9e..3fbad0c70be 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -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 "] @@ -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" diff --git a/misc/metrics/CHANGELOG.md b/misc/metrics/CHANGELOG.md index 49c5d2f4190..c319779222b 100644 --- a/misc/metrics/CHANGELOG.md +++ b/misc/metrics/CHANGELOG.md @@ -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]). diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index 7bf3e0abda8..334a3f76343 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -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 "] diff --git a/misc/multistream-select/CHANGELOG.md b/misc/multistream-select/CHANGELOG.md index 696d4f4c355..81710ea4e4a 100644 --- a/misc/multistream-select/CHANGELOG.md +++ b/misc/multistream-select/CHANGELOG.md @@ -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 for ProtocolError` instead of `Into`. diff --git a/misc/multistream-select/Cargo.toml b/misc/multistream-select/Cargo.toml index 2f6a72db9ef..fb4e41fcb35 100644 --- a/misc/multistream-select/Cargo.toml +++ b/misc/multistream-select/Cargo.toml @@ -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 "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] -edition = "2018" [dependencies] bytes = "1" diff --git a/misc/peer-id-generator/Cargo.toml b/misc/peer-id-generator/Cargo.toml index beeefc2755b..b84da46bb3f 100644 --- a/misc/peer-id-generator/Cargo.toml +++ b/misc/peer-id-generator/Cargo.toml @@ -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 "] diff --git a/muxers/mplex/CHANGELOG.md b/muxers/mplex/CHANGELOG.md index f38d4c0132d..9c1980fa7e0 100644 --- a/muxers/mplex/CHANGELOG.md +++ b/muxers/mplex/CHANGELOG.md @@ -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. diff --git a/muxers/mplex/Cargo.toml b/muxers/mplex/Cargo.toml index 92a57173051..e7776864629 100644 --- a/muxers/mplex/Cargo.toml +++ b/muxers/mplex/Cargo.toml @@ -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 "] diff --git a/muxers/yamux/CHANGELOG.md b/muxers/yamux/CHANGELOG.md index 3f0198f2f30..a3aff449113 100644 --- a/muxers/yamux/CHANGELOG.md +++ b/muxers/yamux/CHANGELOG.md @@ -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. diff --git a/muxers/yamux/Cargo.toml b/muxers/yamux/Cargo.toml index cf23cb0b6b1..7d4cc8b3d53 100644 --- a/muxers/yamux/Cargo.toml +++ b/muxers/yamux/Cargo.toml @@ -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 "] diff --git a/protocols/floodsub/CHANGELOG.md b/protocols/floodsub/CHANGELOG.md index b36a8527743..74c5d3db69b 100644 --- a/protocols/floodsub/CHANGELOG.md +++ b/protocols/floodsub/CHANGELOG.md @@ -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. diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml index 17452c165c7..d63b64e615e 100644 --- a/protocols/floodsub/Cargo.toml +++ b/protocols/floodsub/Cargo.toml @@ -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 "] diff --git a/protocols/gossipsub/CHANGELOG.md b/protocols/gossipsub/CHANGELOG.md index 9df11a94913..7f66d71d723 100644 --- a/protocols/gossipsub/CHANGELOG.md +++ b/protocols/gossipsub/CHANGELOG.md @@ -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]). diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index f4e17ab9d08..270cc6474f3 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -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 "] diff --git a/protocols/identify/CHANGELOG.md b/protocols/identify/CHANGELOG.md index 4cf2f32838d..56007b5abe7 100644 --- a/protocols/identify/CHANGELOG.md +++ b/protocols/identify/CHANGELOG.md @@ -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]). diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index 47cc25fc1f4..a3205f35b2d 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -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 "] diff --git a/protocols/kad/CHANGELOG.md b/protocols/kad/CHANGELOG.md index 1d234eb005b..5bc5b4f645b 100644 --- a/protocols/kad/CHANGELOG.md +++ b/protocols/kad/CHANGELOG.md @@ -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]). diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index ad3e63040d1..2b5a126be33 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -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 "] diff --git a/protocols/mdns/CHANGELOG.md b/protocols/mdns/CHANGELOG.md index 2d3bd922f6b..10d9d0d58e7 100644 --- a/protocols/mdns/CHANGELOG.md +++ b/protocols/mdns/CHANGELOG.md @@ -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] diff --git a/protocols/mdns/Cargo.toml b/protocols/mdns/Cargo.toml index d0fc168e770..1f6fde5ede0 100644 --- a/protocols/mdns/Cargo.toml +++ b/protocols/mdns/Cargo.toml @@ -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 "] diff --git a/protocols/ping/CHANGELOG.md b/protocols/ping/CHANGELOG.md index a951a64db92..50fd25c0f29 100644 --- a/protocols/ping/CHANGELOG.md +++ b/protocols/ping/CHANGELOG.md @@ -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]). diff --git a/protocols/ping/Cargo.toml b/protocols/ping/Cargo.toml index 6d9d09bb7d6..088ac90f0dc 100644 --- a/protocols/ping/Cargo.toml +++ b/protocols/ping/Cargo.toml @@ -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 "] diff --git a/protocols/relay/CHANGELOG.md b/protocols/relay/CHANGELOG.md index b3c086acafc..7c52f0c1864 100644 --- a/protocols/relay/CHANGELOG.md +++ b/protocols/relay/CHANGELOG.md @@ -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]). diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index 870f044d23d..87391c985e1 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -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 "] diff --git a/protocols/rendezvous/CHANGELOG.md b/protocols/rendezvous/CHANGELOG.md index b8f06f479f6..b533274049c 100644 --- a/protocols/rendezvous/CHANGELOG.md +++ b/protocols/rendezvous/CHANGELOG.md @@ -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]). diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index 6bce91b651f..42b4ae8dd2d 100644 --- a/protocols/rendezvous/Cargo.toml +++ b/protocols/rendezvous/Cargo.toml @@ -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 "] diff --git a/protocols/request-response/CHANGELOG.md b/protocols/request-response/CHANGELOG.md index 932079d1447..574f86625c6 100644 --- a/protocols/request-response/CHANGELOG.md +++ b/protocols/request-response/CHANGELOG.md @@ -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]). diff --git a/protocols/request-response/Cargo.toml b/protocols/request-response/Cargo.toml index 6579c20dbc4..d2d6b415749 100644 --- a/protocols/request-response/Cargo.toml +++ b/protocols/request-response/Cargo.toml @@ -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 "] diff --git a/src/tutorial.rs b/src/tutorial.rs index 966bc6d39f2..2f76c5c236a 100644 --- a/src/tutorial.rs +++ b/src/tutorial.rs @@ -46,7 +46,8 @@ //! name = "rust-libp2p-tutorial" //! version = "0.1.0" //! authors = ["Max Inden "] -//! edition = "2018" +//! edition = "2021" +//! rust-version = "1.56.1" //! //! [dependencies] //! libp2p = "" diff --git a/swarm-derive/CHANGELOG.md b/swarm-derive/CHANGELOG.md index 18e1eaf717a..de30030e0fb 100644 --- a/swarm-derive/CHANGELOG.md +++ b/swarm-derive/CHANGELOG.md @@ -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] diff --git a/swarm-derive/Cargo.toml b/swarm-derive/Cargo.toml index 3c06a853541..e562859b522 100644 --- a/swarm-derive/Cargo.toml +++ b/swarm-derive/Cargo.toml @@ -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 "] diff --git a/swarm/CHANGELOG.md b/swarm/CHANGELOG.md index 03c6a1a1708..45b7f2eecd8 100644 --- a/swarm/CHANGELOG.md +++ b/swarm/CHANGELOG.md @@ -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] diff --git a/swarm/Cargo.toml b/swarm/Cargo.toml index a1d1116126d..dfb9161496e 100644 --- a/swarm/Cargo.toml +++ b/swarm/Cargo.toml @@ -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 "] diff --git a/transports/deflate/CHANGELOG.md b/transports/deflate/CHANGELOG.md index 21fcf062c20..b6cf7b7c688 100644 --- a/transports/deflate/CHANGELOG.md +++ b/transports/deflate/CHANGELOG.md @@ -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. diff --git a/transports/deflate/Cargo.toml b/transports/deflate/Cargo.toml index 089eca9d66d..5642449fb78 100644 --- a/transports/deflate/Cargo.toml +++ b/transports/deflate/Cargo.toml @@ -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 "] diff --git a/transports/dns/CHANGELOG.md b/transports/dns/CHANGELOG.md index 32e4ef04ca7..0564653599f 100644 --- a/transports/dns/CHANGELOG.md +++ b/transports/dns/CHANGELOG.md @@ -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. diff --git a/transports/dns/Cargo.toml b/transports/dns/Cargo.toml index baea5316795..159709406b2 100644 --- a/transports/dns/Cargo.toml +++ b/transports/dns/Cargo.toml @@ -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 "] diff --git a/transports/noise/CHANGELOG.md b/transports/noise/CHANGELOG.md index 90729470e87..f31bb9685f5 100644 --- a/transports/noise/CHANGELOG.md +++ b/transports/noise/CHANGELOG.md @@ -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. diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index 9c22752aa4d..5907aa3ae1b 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -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 "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" -edition = "2018" [dependencies] bytes = "1" diff --git a/transports/plaintext/CHANGELOG.md b/transports/plaintext/CHANGELOG.md index 2ce6e439642..dc106cd3cd1 100644 --- a/transports/plaintext/CHANGELOG.md +++ b/transports/plaintext/CHANGELOG.md @@ -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. diff --git a/transports/plaintext/Cargo.toml b/transports/plaintext/Cargo.toml index 7e3d386a20a..84bc5e88ade 100644 --- a/transports/plaintext/Cargo.toml +++ b/transports/plaintext/Cargo.toml @@ -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 "] diff --git a/transports/pnet/CHANGELOG.md b/transports/pnet/CHANGELOG.md index 83b3634a518..4b764219f4f 100644 --- a/transports/pnet/CHANGELOG.md +++ b/transports/pnet/CHANGELOG.md @@ -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. diff --git a/transports/pnet/Cargo.toml b/transports/pnet/Cargo.toml index 7b354c1e853..3d3cbb5a827 100644 --- a/transports/pnet/Cargo.toml +++ b/transports/pnet/Cargo.toml @@ -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 "] diff --git a/transports/tcp/CHANGELOG.md b/transports/tcp/CHANGELOG.md index d091a39f0fb..9db10879ac7 100644 --- a/transports/tcp/CHANGELOG.md +++ b/transports/tcp/CHANGELOG.md @@ -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. diff --git a/transports/tcp/Cargo.toml b/transports/tcp/Cargo.toml index 1970e21478e..a4e09a7bdbd 100644 --- a/transports/tcp/Cargo.toml +++ b/transports/tcp/Cargo.toml @@ -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 "] diff --git a/transports/uds/CHANGELOG.md b/transports/uds/CHANGELOG.md index 5d13d0e4672..57865a97776 100644 --- a/transports/uds/CHANGELOG.md +++ b/transports/uds/CHANGELOG.md @@ -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. diff --git a/transports/uds/Cargo.toml b/transports/uds/Cargo.toml index 4fe1b4334f4..8b5c94127f3 100644 --- a/transports/uds/Cargo.toml +++ b/transports/uds/Cargo.toml @@ -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 "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" diff --git a/transports/wasm-ext/CHANGELOG.md b/transports/wasm-ext/CHANGELOG.md index ea66e34dee9..7cfd10558f5 100644 --- a/transports/wasm-ext/CHANGELOG.md +++ b/transports/wasm-ext/CHANGELOG.md @@ -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. diff --git a/transports/wasm-ext/Cargo.toml b/transports/wasm-ext/Cargo.toml index 2695629ced5..e4bfbc07ce0 100644 --- a/transports/wasm-ext/Cargo.toml +++ b/transports/wasm-ext/Cargo.toml @@ -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 "] -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"] diff --git a/transports/websocket/CHANGELOG.md b/transports/websocket/CHANGELOG.md index f387b7b8cc0..588315ed167 100644 --- a/transports/websocket/CHANGELOG.md +++ b/transports/websocket/CHANGELOG.md @@ -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]). diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index 23876b1e761..367610a7c67 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -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 "]