Skip to content

Commit b057f91

Browse files
authored
chore(deps): upgrade thiserror to 2.0
Changes: - upgrade `thiserror` crate from `1` to `2` - move `thiserror` to `workspace.dependencies` - sort `workspace.dependencies` - ~run `cargo update` to update `Cargo.lock`~ (Skipping changelog as `thiserror` does not present in any public APIs) Pull-Request: #5689.
1 parent 2371922 commit b057f91

File tree

24 files changed

+142
-119
lines changed

24 files changed

+142
-119
lines changed

Cargo.lock

Lines changed: 110 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ resolver = "2"
7272
rust-version = "1.75.0"
7373

7474
[workspace.dependencies]
75-
asynchronous-codec = { version = "0.7.0" }
76-
futures-bounded = { version = "0.2.4" }
77-
futures-rustls = { version = "0.26.0", default-features = false }
7875
libp2p = { version = "0.54.2", path = "libp2p" }
7976
libp2p-allow-block-list = { version = "0.4.2", path = "misc/allow-block-list" }
8077
libp2p-autonat = { version = "0.13.1", path = "protocols/autonat" }
@@ -116,21 +113,27 @@ libp2p-websocket = { version = "0.44.1", path = "transports/websocket" }
116113
libp2p-websocket-websys = { version = "0.4.1", path = "transports/websocket-websys" }
117114
libp2p-webtransport-websys = { version = "0.4.0", path = "transports/webtransport-websys" }
118115
libp2p-yamux = { version = "0.46.0", path = "muxers/yamux" }
116+
117+
# External dependencies
118+
asynchronous-codec = { version = "0.7.0" }
119+
futures = "0.3.30"
120+
futures-bounded = { version = "0.2.4" }
121+
futures-rustls = { version = "0.26.0", default-features = false }
119122
multiaddr = "0.18.1"
120123
multihash = "0.19.1"
121124
multistream-select = { version = "0.13.0", path = "misc/multistream-select" }
122125
prometheus-client = "0.22.2"
123126
quick-protobuf-codec = { version = "0.3.1", path = "misc/quick-protobuf-codec" }
124127
quickcheck = { package = "quickcheck-ext", path = "misc/quickcheck-ext" }
128+
rcgen = "0.11.3"
129+
ring = "0.17.8"
125130
rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" }
126-
unsigned-varint = { version = "0.8.0" }
131+
thiserror = "2"
127132
tokio = { version = "1.38", default-features = false }
128133
tracing = "0.1.37"
129134
tracing-subscriber = "0.3"
130-
futures = "0.3.30"
135+
unsigned-varint = { version = "0.8.0" }
131136
web-time = "1.1.0"
132-
ring = "0.17.8"
133-
rcgen = "0.11.3"
134137

135138
[patch.crates-io]
136139

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ rand = "0.8"
2828
rw-stream-sink = { workspace = true }
2929
serde = { version = "1", optional = true, features = ["derive"] }
3030
smallvec = "1.13.2"
31-
thiserror = "1.0"
31+
thiserror = { workspace = true }
3232
tracing = { workspace = true }
3333
unsigned-varint = { workspace = true }
3434

identity/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rand = { version = "0.8", optional = true }
2525
sec1 = { version = "0.7", default-features = false, optional = true }
2626
serde = { version = "1", optional = true, features = ["derive"] }
2727
sha2 = { version = "0.10.8", optional = true }
28-
thiserror = { version = "1.0", optional = true }
28+
thiserror = { workspace = true, optional = true }
2929
zeroize = { version = "1.8", optional = true }
3030

3131
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]

libp2p/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ libp2p-webtransport-websys = { workspace = true, optional = true }
122122
libp2p-yamux = { workspace = true, optional = true }
123123
multiaddr = { workspace = true }
124124
pin-project = "1.0.0"
125-
thiserror = "1.0"
125+
thiserror = { workspace = true }
126126

127127
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
128128
libp2p-dns = { workspace = true, optional = true }

misc/quick-protobuf-codec/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = ["asynchronous"]
1313
[dependencies]
1414
asynchronous-codec = { workspace = true }
1515
bytes = { version = "1" }
16-
thiserror = "1.0"
16+
thiserror = { workspace = true }
1717
unsigned-varint = { workspace = true, features = ["std"] }
1818
quick-protobuf = "0.8"
1919

misc/webrtc-utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ quick-protobuf-codec = { workspace = true }
2323
rand = "0.8"
2424
serde = { version = "1.0", features = ["derive"] }
2525
sha2 = "0.10.8"
26-
thiserror = "1"
26+
thiserror = { workspace = true }
2727
tinytemplate = "1.2"
2828
tracing = { workspace = true }
2929

muxers/yamux/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"]
1414
either = "1"
1515
futures = { workspace = true }
1616
libp2p-core = { workspace = true }
17-
thiserror = "1.0"
17+
thiserror = { workspace = true }
1818
yamux012 = { version = "0.12.1", package = "yamux" }
1919
yamux013 = { version = "0.13.3", package = "yamux" }
2020
tracing = { workspace = true }

protocols/autonat/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tracing = { workspace = true }
3333
quick-protobuf-codec = { workspace = true }
3434
rand = "0.8"
3535
rand_core = { version = "0.6", optional = true }
36-
thiserror = { version = "1.0.52", optional = true }
36+
thiserror = { workspace = true, optional = true }
3737

3838
[dev-dependencies]
3939
tokio = { workspace = true, features = ["macros", "rt", "sync"] }

protocols/dcutr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ libp2p-swarm = { workspace = true }
2121
libp2p-identity = { workspace = true }
2222
quick-protobuf = "0.8"
2323
quick-protobuf-codec = { workspace = true }
24-
thiserror = "1.0"
24+
thiserror = { workspace = true }
2525
tracing = { workspace = true }
2626
lru = "0.12.3"
2727
futures-bounded = { workspace = true }

0 commit comments

Comments
 (0)