Skip to content

Commit 6400850

Browse files
committed
chore: inherit workspace edition
1 parent b29c2f6 commit 6400850

File tree

68 files changed

+70
-69
lines changed

Some content is hidden

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

68 files changed

+70
-69
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ resolver = "2"
7070

7171
[workspace.package]
7272
rust-version = "1.83.0"
73+
edition = "2021"
7374

7475
[workspace.dependencies]
7576
libp2p = { version = "0.55.1", path = "libp2p" }

core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-core"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Core traits and structs of libp2p"
66
version = "0.43.0"

examples/autonat/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "autonat-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT or Apache-2.0"
77

examples/autonatv2/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "autonatv2"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT or Apache-2.0"
77

examples/browser-webrtc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
authors = ["Doug Anderson <[email protected]>"]
33
description = "Example use of the WebRTC transport in a browser wasm environment"
4-
edition = "2021"
4+
edition.workspace = true
55
license = "MIT"
66
name = "browser-webrtc-example"
77
publish = false

examples/chat/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "chat-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/dcutr/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "dcutr-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/distributed-key-value-store/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "distributed-key-value-store-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/file-sharing/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "file-sharing-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/identify/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "identify-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/ipfs-kad/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ipfs-kad-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/ipfs-private/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ipfs-private-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/metrics/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "metrics-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/ping/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ping-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/relay-server/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "relay-server-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/rendezvous/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rendezvous-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/stream/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "stream-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

examples/upnp/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "upnp-example"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

hole-punching-tests/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "hole-punching-tests"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

identity/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "libp2p-identity"
33
version = "0.2.10"
4-
edition = "2021"
4+
edition = "2021" # MUST NOT inherit from workspace because we don't want to publish breaking changes to `libp2p-identity`.
55
description = "Data structures and algorithms for identifying peers in libp2p."
66
rust-version = "1.73.0" # MUST NOT inherit from workspace because we don't want to publish breaking changes to `libp2p-identity`.
77
license = "MIT"

interop-tests/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
edition = "2021"
2+
edition.workspace = true
33
name = "interop-tests"
44
version = "0.1.0"
55
publish = false

libp2p/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Peer-to-peer networking library"
66
version = "0.55.1"

libp2p/src/tutorials/ping.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
//! [package]
5353
//! name = "rust-libp2p-tutorial"
5454
//! version = "0.1.0"
55-
//! edition = "2021"
55+
//! edition.workspace = true
5656
//!
5757
//! [dependencies]
5858
//! libp2p = { version = "0.54", features = ["noise", "ping", "tcp", "tokio", "yamux"] }

misc/allow-block-list/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-allow-block-list"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Allow/block list connection management for libp2p."
66
version = "0.5.0"

misc/connection-limits/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-connection-limits"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Connection limits for libp2p."
66
version = "0.5.1"

misc/keygen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "keygen"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
authors = ["demfabris <[email protected]>"]
66
license = "MIT"
77
repository = "https://github.com/libp2p/rust-libp2p"

misc/memory-connection-limits/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-memory-connection-limits"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Memory usage based connection limits for libp2p."
66
version = "0.4.0"

misc/metrics/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-metrics"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Metrics for libp2p"
66
version = "0.16.0"

misc/multistream-select/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "multistream-select"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Multistream-select negotiation protocol for libp2p"
66
version = "0.13.0"

misc/quick-protobuf-codec/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "quick-protobuf-codec"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Asynchronous de-/encoding of Protobuf structs using asynchronous-codec, unsigned-varint and quick-protobuf."
66
version = "0.3.1"

misc/quickcheck-ext/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "quickcheck-ext"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "Unlicense/MIT"
77

misc/rw-stream-sink/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rw-stream-sink"
3-
edition = "2021"
3+
edition.workspace = true
44
description = "Adaptator between Stream/Sink and AsyncRead/AsyncWrite"
55
rust-version = { workspace = true }
66
version = "0.4.0"

misc/server/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "libp2p-server"
33
version = "0.12.6"
44
authors = ["Max Inden <[email protected]>"]
5-
edition = "2021"
5+
edition.workspace = true
66
repository = "https://github.com/libp2p/rust-libp2p"
77
rust-version = { workspace = true }
88
description = "A rust-libp2p server binary."

misc/webrtc-utils/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Doug Anderson <[email protected]>"]
33
categories = ["network-programming"]
44
description = "Utilities for WebRTC in libp2p"
5-
edition = "2021"
5+
edition.workspace = true
66
license = "MIT"
77
name = "libp2p-webrtc-utils"
88
repository = "https://github.com/libp2p/rust-libp2p"

muxers/mplex/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-mplex"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Mplex multiplexing protocol for libp2p"
66
version = "0.43.1"

muxers/test-harness/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "libp2p-muxer-test-harness"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55
publish = false
66
license = "MIT"
77

muxers/yamux/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-yamux"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Yamux multiplexing protocol for libp2p"
66
version = "0.47.0"

protocols/autonat/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-autonat"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "NAT and firewall detection for libp2p"
66
version = "0.14.1"

protocols/dcutr/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-dcutr"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Direct connection upgrade through relay"
66
version = "0.13.0"

protocols/floodsub/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-floodsub"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Floodsub protocol for libp2p"
66
version = "0.46.1"

protocols/gossipsub/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-gossipsub"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Gossipsub protocol for libp2p"
66
version = "0.48.1"

protocols/identify/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-identify"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Nodes identification protocol for libp2p"
66
version = "0.46.0"

protocols/kad/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-kad"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Kademlia protocol for libp2p"
66
version = "0.47.0"

protocols/mdns/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-mdns"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
version = "0.47.0"
66
description = "Implementation of the libp2p mDNS discovery method"

protocols/perf/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-perf"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "libp2p perf protocol implementation"
66
version = "0.4.0"

protocols/ping/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-ping"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Ping protocol for libp2p"
66
version = "0.46.0"

protocols/relay/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-relay"
3-
edition = "2021"
3+
edition.workspace = true
44
rust-version = { workspace = true }
55
description = "Communications relaying for libp2p"
66
version = "0.19.1"

0 commit comments

Comments
 (0)