From b057f918df4ca1da0d3af6e0103811618eb90c06 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Tue, 26 Nov 2024 04:14:50 +0800 Subject: [PATCH] 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. --- Cargo.lock | 200 ++++++++++++---------- Cargo.toml | 17 +- core/Cargo.toml | 2 +- identity/Cargo.toml | 2 +- libp2p/Cargo.toml | 2 +- misc/quick-protobuf-codec/Cargo.toml | 2 +- misc/webrtc-utils/Cargo.toml | 2 +- muxers/yamux/Cargo.toml | 2 +- protocols/autonat/Cargo.toml | 2 +- protocols/dcutr/Cargo.toml | 2 +- protocols/floodsub/Cargo.toml | 2 +- protocols/identify/Cargo.toml | 2 +- protocols/kad/Cargo.toml | 2 +- protocols/perf/Cargo.toml | 2 +- protocols/relay/Cargo.toml | 2 +- protocols/rendezvous/Cargo.toml | 2 +- transports/noise/Cargo.toml | 2 +- transports/quic/Cargo.toml | 2 +- transports/tls/Cargo.toml | 2 +- transports/webrtc-websys/Cargo.toml | 2 +- transports/webrtc/Cargo.toml | 2 +- transports/websocket-websys/Cargo.toml | 2 +- transports/websocket/Cargo.toml | 2 +- transports/webtransport-websys/Cargo.toml | 2 +- 24 files changed, 142 insertions(+), 119 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e24db6e69d4..d405464f58f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -175,7 +175,7 @@ dependencies = [ "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.63", "time", ] @@ -191,7 +191,7 @@ dependencies = [ "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.63", "time", ] @@ -215,7 +215,7 @@ checksum = "7378575ff571966e99a744addeff0bff98b8ada0dedf1956d59e634db95eaac1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", "synstructure 0.13.1", ] @@ -238,7 +238,7 @@ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -472,7 +472,7 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -489,7 +489,7 @@ checksum = "c6fa2087f2753a7da8cc1c0dbfcf89579dd57458e36769de5ac750b4671737ca" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -963,7 +963,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -1226,7 +1226,7 @@ checksum = "83fdaf97f4804dcebfa5862639bc9ce4121e82140bec2a987ac5140294865b5b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -1366,7 +1366,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -1471,7 +1471,7 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -1727,7 +1727,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -1981,7 +1981,7 @@ dependencies = [ "once_cell", "rand 0.8.5", "socket2 0.5.7", - "thiserror", + "thiserror 1.0.63", "tinyvec", "tokio", "tracing", @@ -2004,7 +2004,7 @@ dependencies = [ "rand 0.8.5", "resolv-conf", "smallvec", - "thiserror", + "thiserror 1.0.63", "tokio", "tracing", ] @@ -2369,7 +2369,7 @@ dependencies = [ "rand 0.8.5", "rtcp", "rtp", - "thiserror", + "thiserror 1.0.63", "tokio", "waitgroup", "webrtc-srtp", @@ -2592,7 +2592,7 @@ dependencies = [ "multiaddr", "pin-project", "rw-stream-sink", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing-subscriber", ] @@ -2630,7 +2630,7 @@ dependencies = [ "quick-protobuf-codec", "rand 0.8.5", "rand_core 0.6.4", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "tracing-subscriber", @@ -2677,7 +2677,7 @@ dependencies = [ "rw-stream-sink", "serde", "smallvec", - "thiserror", + "thiserror 2.0.3", "tracing", "unsigned-varint 0.8.0", "web-time 1.1.0", @@ -2709,7 +2709,7 @@ dependencies = [ "quick-protobuf", "quick-protobuf-codec", "rand 0.8.5", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "tracing-subscriber", @@ -2750,7 +2750,7 @@ dependencies = [ "quick-protobuf-codec", "rand 0.8.5", "smallvec", - "thiserror", + "thiserror 2.0.3", "tracing", ] @@ -2809,7 +2809,7 @@ dependencies = [ "quick-protobuf", "quick-protobuf-codec", "smallvec", - "thiserror", + "thiserror 2.0.3", "tracing", "tracing-subscriber", ] @@ -2837,7 +2837,7 @@ dependencies = [ "serde", "serde_json", "sha2 0.10.8", - "thiserror", + "thiserror 2.0.3", "tracing", "zeroize", ] @@ -2869,7 +2869,7 @@ dependencies = [ "serde", "sha2 0.10.8", "smallvec", - "thiserror", + "thiserror 2.0.3", "tracing", "tracing-subscriber", "uint", @@ -2992,7 +2992,7 @@ dependencies = [ "sha2 0.10.8", "snow", "static_assertions", - "thiserror", + "thiserror 2.0.3", "tracing", "tracing-subscriber", "x25519-dalek", @@ -3021,7 +3021,7 @@ dependencies = [ "rand 0.8.5", "serde", "serde_json", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "tracing-subscriber", @@ -3109,7 +3109,7 @@ dependencies = [ "ring 0.17.8", "rustls 0.23.11", "socket2 0.5.7", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "tracing-subscriber", @@ -3137,7 +3137,7 @@ dependencies = [ "quickcheck-ext", "rand 0.8.5", "static_assertions", - "thiserror", + "thiserror 2.0.3", "tracing", "tracing-subscriber", "web-time 1.1.0", @@ -3165,7 +3165,7 @@ dependencies = [ "quick-protobuf", "quick-protobuf-codec", "rand 0.8.5", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "tracing-subscriber", @@ -3276,7 +3276,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -3330,7 +3330,7 @@ dependencies = [ "ring 0.17.8", "rustls 0.23.11", "rustls-webpki 0.101.7", - "thiserror", + "thiserror 2.0.3", "tokio", "x509-parser 0.16.0", "yasna", @@ -3381,7 +3381,7 @@ dependencies = [ "rcgen", "serde", "stun 0.6.0", - "thiserror", + "thiserror 2.0.3", "tinytemplate", "tokio", "tokio-util", @@ -3407,7 +3407,7 @@ dependencies = [ "rand 0.8.5", "serde", "sha2 0.10.8", - "thiserror", + "thiserror 2.0.3", "tinytemplate", "tracing", ] @@ -3425,7 +3425,7 @@ dependencies = [ "libp2p-identity", "libp2p-webrtc-utils", "send_wrapper 0.6.0", - "thiserror", + "thiserror 2.0.3", "tracing", "wasm-bindgen", "wasm-bindgen-futures", @@ -3449,7 +3449,7 @@ dependencies = [ "rcgen", "rw-stream-sink", "soketto", - "thiserror", + "thiserror 2.0.3", "tracing", "url", "webpki-roots 0.25.2", @@ -3468,7 +3468,7 @@ dependencies = [ "libp2p-yamux", "parking_lot", "send_wrapper 0.6.0", - "thiserror", + "thiserror 2.0.3", "tracing", "wasm-bindgen", "web-sys", @@ -3488,7 +3488,7 @@ dependencies = [ "multihash", "once_cell", "send_wrapper 0.6.0", - "thiserror", + "thiserror 2.0.3", "tracing", "wasm-bindgen", "wasm-bindgen-futures", @@ -3504,7 +3504,7 @@ dependencies = [ "futures", "libp2p-core", "libp2p-muxer-test-harness", - "thiserror", + "thiserror 2.0.3", "tracing", "yamux 0.12.1", "yamux 0.13.3", @@ -3861,7 +3861,7 @@ dependencies = [ "anyhow", "byteorder", "paste", - "thiserror", + "thiserror 1.0.63", ] [[package]] @@ -3875,7 +3875,7 @@ dependencies = [ "log", "netlink-packet-core", "netlink-sys", - "thiserror", + "thiserror 1.0.63", "tokio", ] @@ -4066,7 +4066,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -4099,7 +4099,7 @@ dependencies = [ "js-sys", "once_cell", "pin-project-lite", - "thiserror", + "thiserror 1.0.63", "urlencoding", ] @@ -4114,7 +4114,7 @@ dependencies = [ "js-sys", "once_cell", "pin-project-lite", - "thiserror", + "thiserror 1.0.63", ] [[package]] @@ -4146,7 +4146,7 @@ dependencies = [ "opentelemetry-proto", "opentelemetry_sdk 0.25.0", "prost", - "thiserror", + "thiserror 1.0.63", "tokio", "tonic", ] @@ -4189,7 +4189,7 @@ dependencies = [ "ordered-float 4.2.0", "percent-encoding", "rand 0.8.5", - "thiserror", + "thiserror 1.0.63", "tokio", "tokio-stream", ] @@ -4210,7 +4210,7 @@ dependencies = [ "percent-encoding", "rand 0.8.5", "serde_json", - "thiserror", + "thiserror 1.0.63", "tokio", "tokio-stream", ] @@ -4340,7 +4340,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -4492,9 +4492,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.85" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" dependencies = [ "unicode-ident", ] @@ -4519,7 +4519,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -4542,7 +4542,7 @@ dependencies = [ "itertools", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -4570,7 +4570,7 @@ dependencies = [ "futures", "quick-protobuf", "quickcheck-ext", - "thiserror", + "thiserror 2.0.3", "unsigned-varint 0.8.0", ] @@ -4608,7 +4608,7 @@ dependencies = [ "quinn-udp", "rustc-hash 1.1.0", "rustls 0.23.11", - "thiserror", + "thiserror 1.0.63", "tokio", "tracing", ] @@ -4625,7 +4625,7 @@ dependencies = [ "rustc-hash 2.0.0", "rustls 0.23.11", "slab", - "thiserror", + "thiserror 1.0.63", "tinyvec", "tracing", ] @@ -4801,7 +4801,7 @@ checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ "getrandom 0.2.15", "redox_syscall 0.2.16", - "thiserror", + "thiserror 1.0.63", ] [[package]] @@ -5006,7 +5006,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3677908cadfbecb4cc1da9a56a32524fae4ebdfa7c2ea93886e1b1e846488cb9" dependencies = [ "bytes", - "thiserror", + "thiserror 1.0.63", "webrtc-util 0.8.1", ] @@ -5022,7 +5022,7 @@ dependencies = [ "netlink-packet-route", "netlink-proto", "nix 0.24.3", - "thiserror", + "thiserror 1.0.63", "tokio", ] @@ -5035,7 +5035,7 @@ dependencies = [ "bytes", "rand 0.8.5", "serde", - "thiserror", + "thiserror 1.0.63", "webrtc-util 0.8.1", ] @@ -5060,7 +5060,7 @@ dependencies = [ "quote", "rust-embed-utils", "shellexpand", - "syn 2.0.66", + "syn 2.0.89", "walkdir", ] @@ -5294,7 +5294,7 @@ checksum = "4653054c30ebce63658762eb0d64e27673868a95564474811ae6c220cf767640" dependencies = [ "rand 0.8.5", "substring", - "thiserror", + "thiserror 1.0.63", "url", ] @@ -5373,7 +5373,7 @@ checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -5406,7 +5406,7 @@ checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -5691,7 +5691,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -5707,7 +5707,7 @@ dependencies = [ "rand 0.8.5", "ring 0.17.8", "subtle", - "thiserror", + "thiserror 1.0.63", "tokio", "url", "webrtc-util 0.8.1", @@ -5726,7 +5726,7 @@ dependencies = [ "rand 0.8.5", "ring 0.17.8", "subtle", - "thiserror", + "thiserror 1.0.63", "tokio", "url", "webrtc-util 0.9.0", @@ -5760,9 +5760,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.66" +version = "2.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" +checksum = "44d46482f1c1c87acd84dea20c1bf5ebff4c757009ed6bf19cfd36fb10e92c4e" dependencies = [ "proc-macro2", "quote", @@ -5801,7 +5801,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -5881,7 +5881,7 @@ dependencies = [ "stringmatch", "strum", "thirtyfour-macros", - "thiserror", + "thiserror 1.0.63", "tokio", "tracing", "url", @@ -5895,7 +5895,7 @@ checksum = "b72d056365e368fc57a56d0cec9e41b02fb4a3474a61c8735262b1cfebe67425" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -5904,7 +5904,16 @@ version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.63", +] + +[[package]] +name = "thiserror" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +dependencies = [ + "thiserror-impl 2.0.3", ] [[package]] @@ -5915,7 +5924,18 @@ checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.89", ] [[package]] @@ -6033,7 +6053,7 @@ checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -6223,7 +6243,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -6346,7 +6366,7 @@ dependencies = [ "rand 0.8.5", "ring 0.16.20", "stun 0.5.1", - "thiserror", + "thiserror 1.0.63", "tokio", "webrtc-util 0.8.1", ] @@ -6577,7 +6597,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", "wasm-bindgen-shared", ] @@ -6611,7 +6631,7 @@ checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -6645,7 +6665,7 @@ checksum = "4b8220be1fa9e4c889b30fd207d4906657e7e90b12e0e6b0c8b8d8709f5de021" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -6732,7 +6752,7 @@ dependencies = [ "sha2 0.10.8", "smol_str", "stun 0.5.1", - "thiserror", + "thiserror 1.0.63", "time", "tokio", "turn", @@ -6756,7 +6776,7 @@ checksum = "a45d2461d0e0bf93f181e30eb0b40df32b8bf3efb89c53cebb1990e603e2067d" dependencies = [ "bytes", "log", - "thiserror", + "thiserror 1.0.63", "tokio", "webrtc-sctp", "webrtc-util 0.8.1", @@ -6792,7 +6812,7 @@ dependencies = [ "sha1", "sha2 0.10.8", "subtle", - "thiserror", + "thiserror 1.0.63", "tokio", "webrtc-util 0.8.1", "x25519-dalek", @@ -6813,7 +6833,7 @@ dependencies = [ "serde", "serde_json", "stun 0.5.1", - "thiserror", + "thiserror 1.0.63", "tokio", "turn", "url", @@ -6831,7 +6851,7 @@ checksum = "62bebbd40e7f8b630a0f1a74783dbfff1edfc0ccaae891c4689891156a8c4d8c" dependencies = [ "log", "socket2 0.5.7", - "thiserror", + "thiserror 1.0.63", "tokio", "webrtc-util 0.8.1", ] @@ -6846,7 +6866,7 @@ dependencies = [ "bytes", "rand 0.8.5", "rtp", - "thiserror", + "thiserror 1.0.63", ] [[package]] @@ -6861,7 +6881,7 @@ dependencies = [ "crc", "log", "rand 0.8.5", - "thiserror", + "thiserror 1.0.63", "tokio", "webrtc-util 0.8.1", ] @@ -6884,7 +6904,7 @@ dependencies = [ "rtp", "sha1", "subtle", - "thiserror", + "thiserror 1.0.63", "tokio", "webrtc-util 0.8.1", ] @@ -6904,7 +6924,7 @@ dependencies = [ "log", "nix 0.26.4", "rand 0.8.5", - "thiserror", + "thiserror 1.0.63", "tokio", "winapi", ] @@ -6925,7 +6945,7 @@ dependencies = [ "nix 0.26.4", "portable-atomic", "rand 0.8.5", - "thiserror", + "thiserror 1.0.63", "tokio", "winapi", ] @@ -7210,7 +7230,7 @@ dependencies = [ "oid-registry 0.6.1", "ring 0.16.20", "rusticata-macros", - "thiserror", + "thiserror 1.0.63", "time", ] @@ -7227,7 +7247,7 @@ dependencies = [ "nom", "oid-registry 0.7.0", "rusticata-macros", - "thiserror", + "thiserror 1.0.63", "time", ] @@ -7303,7 +7323,7 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] [[package]] @@ -7323,5 +7343,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.89", ] diff --git a/Cargo.toml b/Cargo.toml index a7f944d22fc..b631b587dee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -72,9 +72,6 @@ resolver = "2" rust-version = "1.75.0" [workspace.dependencies] -asynchronous-codec = { version = "0.7.0" } -futures-bounded = { version = "0.2.4" } -futures-rustls = { version = "0.26.0", default-features = false } libp2p = { version = "0.54.2", path = "libp2p" } libp2p-allow-block-list = { version = "0.4.2", path = "misc/allow-block-list" } libp2p-autonat = { version = "0.13.1", path = "protocols/autonat" } @@ -116,21 +113,27 @@ libp2p-websocket = { version = "0.44.1", path = "transports/websocket" } libp2p-websocket-websys = { version = "0.4.1", path = "transports/websocket-websys" } libp2p-webtransport-websys = { version = "0.4.0", path = "transports/webtransport-websys" } libp2p-yamux = { version = "0.46.0", path = "muxers/yamux" } + +# External dependencies +asynchronous-codec = { version = "0.7.0" } +futures = "0.3.30" +futures-bounded = { version = "0.2.4" } +futures-rustls = { version = "0.26.0", default-features = false } multiaddr = "0.18.1" multihash = "0.19.1" multistream-select = { version = "0.13.0", path = "misc/multistream-select" } prometheus-client = "0.22.2" quick-protobuf-codec = { version = "0.3.1", path = "misc/quick-protobuf-codec" } quickcheck = { package = "quickcheck-ext", path = "misc/quickcheck-ext" } +rcgen = "0.11.3" +ring = "0.17.8" rw-stream-sink = { version = "0.4.0", path = "misc/rw-stream-sink" } -unsigned-varint = { version = "0.8.0" } +thiserror = "2" tokio = { version = "1.38", default-features = false } tracing = "0.1.37" tracing-subscriber = "0.3" -futures = "0.3.30" +unsigned-varint = { version = "0.8.0" } web-time = "1.1.0" -ring = "0.17.8" -rcgen = "0.11.3" [patch.crates-io] diff --git a/core/Cargo.toml b/core/Cargo.toml index c257ff25ec4..8ec0b0fc197 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -28,7 +28,7 @@ rand = "0.8" rw-stream-sink = { workspace = true } serde = { version = "1", optional = true, features = ["derive"] } smallvec = "1.13.2" -thiserror = "1.0" +thiserror = { workspace = true } tracing = { workspace = true } unsigned-varint = { workspace = true } diff --git a/identity/Cargo.toml b/identity/Cargo.toml index d3b07c5dc87..cc41abb3e24 100644 --- a/identity/Cargo.toml +++ b/identity/Cargo.toml @@ -25,7 +25,7 @@ rand = { version = "0.8", optional = true } sec1 = { version = "0.7", default-features = false, optional = true } serde = { version = "1", optional = true, features = ["derive"] } sha2 = { version = "0.10.8", optional = true } -thiserror = { version = "1.0", optional = true } +thiserror = { workspace = true, optional = true } zeroize = { version = "1.8", optional = true } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] diff --git a/libp2p/Cargo.toml b/libp2p/Cargo.toml index 83ef86a4ca4..79f4b8fbb9a 100644 --- a/libp2p/Cargo.toml +++ b/libp2p/Cargo.toml @@ -122,7 +122,7 @@ libp2p-webtransport-websys = { workspace = true, optional = true } libp2p-yamux = { workspace = true, optional = true } multiaddr = { workspace = true } pin-project = "1.0.0" -thiserror = "1.0" +thiserror = { workspace = true } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] libp2p-dns = { workspace = true, optional = true } diff --git a/misc/quick-protobuf-codec/Cargo.toml b/misc/quick-protobuf-codec/Cargo.toml index 985479059a2..2501e94ca19 100644 --- a/misc/quick-protobuf-codec/Cargo.toml +++ b/misc/quick-protobuf-codec/Cargo.toml @@ -13,7 +13,7 @@ categories = ["asynchronous"] [dependencies] asynchronous-codec = { workspace = true } bytes = { version = "1" } -thiserror = "1.0" +thiserror = { workspace = true } unsigned-varint = { workspace = true, features = ["std"] } quick-protobuf = "0.8" diff --git a/misc/webrtc-utils/Cargo.toml b/misc/webrtc-utils/Cargo.toml index 88f576f12d9..287388a49e7 100644 --- a/misc/webrtc-utils/Cargo.toml +++ b/misc/webrtc-utils/Cargo.toml @@ -23,7 +23,7 @@ quick-protobuf-codec = { workspace = true } rand = "0.8" serde = { version = "1.0", features = ["derive"] } sha2 = "0.10.8" -thiserror = "1" +thiserror = { workspace = true } tinytemplate = "1.2" tracing = { workspace = true } diff --git a/muxers/yamux/Cargo.toml b/muxers/yamux/Cargo.toml index 0c52eca3fd4..cd3f8347bd0 100644 --- a/muxers/yamux/Cargo.toml +++ b/muxers/yamux/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] either = "1" futures = { workspace = true } libp2p-core = { workspace = true } -thiserror = "1.0" +thiserror = { workspace = true } yamux012 = { version = "0.12.1", package = "yamux" } yamux013 = { version = "0.13.3", package = "yamux" } tracing = { workspace = true } diff --git a/protocols/autonat/Cargo.toml b/protocols/autonat/Cargo.toml index ced5dbeb4e8..92ca163d8ec 100644 --- a/protocols/autonat/Cargo.toml +++ b/protocols/autonat/Cargo.toml @@ -33,7 +33,7 @@ tracing = { workspace = true } quick-protobuf-codec = { workspace = true } rand = "0.8" rand_core = { version = "0.6", optional = true } -thiserror = { version = "1.0.52", optional = true } +thiserror = { workspace = true, optional = true } [dev-dependencies] tokio = { workspace = true, features = ["macros", "rt", "sync"] } diff --git a/protocols/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index 69517181aab..a47f5400488 100644 --- a/protocols/dcutr/Cargo.toml +++ b/protocols/dcutr/Cargo.toml @@ -21,7 +21,7 @@ libp2p-swarm = { workspace = true } libp2p-identity = { workspace = true } quick-protobuf = "0.8" quick-protobuf-codec = { workspace = true } -thiserror = "1.0" +thiserror = { workspace = true } tracing = { workspace = true } lru = "0.12.3" futures-bounded = { workspace = true } diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml index 18d77e99e9c..dcfde6383cc 100644 --- a/protocols/floodsub/Cargo.toml +++ b/protocols/floodsub/Cargo.toml @@ -23,7 +23,7 @@ quick-protobuf = "0.8" quick-protobuf-codec = { workspace = true } rand = "0.8" smallvec = "1.13.2" -thiserror = "1.0.61" +thiserror = { workspace = true } tracing = { workspace = true } # Passing arguments to the docsrs builder in order to properly document cfg's. diff --git a/protocols/identify/Cargo.toml b/protocols/identify/Cargo.toml index 87b3ed63774..d7f6b6eca76 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -22,7 +22,7 @@ lru = "0.12.3" quick-protobuf-codec = { workspace = true } quick-protobuf = "0.8" smallvec = "1.13.2" -thiserror = "1.0" +thiserror = { workspace = true } tracing = { workspace = true } either = "1.12.0" diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index 11df81afbf8..295414f6ddd 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -30,7 +30,7 @@ uint = "0.9" futures-timer = "3.0.3" web-time = { workspace = true } serde = { version = "1.0", optional = true, features = ["derive"] } -thiserror = "1" +thiserror = { workspace = true } tracing = { workspace = true } [dev-dependencies] diff --git a/protocols/perf/Cargo.toml b/protocols/perf/Cargo.toml index a1a6128c6ed..cd499a8c949 100644 --- a/protocols/perf/Cargo.toml +++ b/protocols/perf/Cargo.toml @@ -28,7 +28,7 @@ libp2p-tls = { workspace = true } libp2p-yamux = { workspace = true } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -thiserror = "1.0" +thiserror = { workspace = true } tracing = { workspace = true } tracing-subscriber = { workspace = true, features = ["env-filter"] } tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] } diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index c996a014845..6c2c7b90304 100644 --- a/protocols/relay/Cargo.toml +++ b/protocols/relay/Cargo.toml @@ -25,7 +25,7 @@ quick-protobuf = "0.8" quick-protobuf-codec = { workspace = true } rand = "0.8.4" static_assertions = "1" -thiserror = "1.0" +thiserror = { workspace = true } tracing = { workspace = true } [dev-dependencies] diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index 5aa70688dbe..5fa40c3785b 100644 --- a/protocols/rendezvous/Cargo.toml +++ b/protocols/rendezvous/Cargo.toml @@ -24,7 +24,7 @@ libp2p-request-response = { workspace = true } quick-protobuf = "0.8" quick-protobuf-codec = { workspace = true } rand = "0.8" -thiserror = "1" +thiserror = { workspace = true } tracing = { workspace = true } [dev-dependencies] diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index 7f8e9004cd0..9798ba1836e 100644 --- a/transports/noise/Cargo.toml +++ b/transports/noise/Cargo.toml @@ -22,7 +22,7 @@ quick-protobuf = "0.8" rand = "0.8.3" sha2 = "0.10.8" static_assertions = "1" -thiserror = "1.0.61" +thiserror = { workspace = true } tracing = { workspace = true } x25519-dalek = "2" zeroize = "1" diff --git a/transports/quic/Cargo.toml b/transports/quic/Cargo.toml index a33ef4ef0b1..17d5014b974 100644 --- a/transports/quic/Cargo.toml +++ b/transports/quic/Cargo.toml @@ -21,7 +21,7 @@ parking_lot = "0.12.3" quinn = { version = "0.11.2", default-features = false, features = ["rustls", "futures-io"] } rand = "0.8.5" rustls = { version = "0.23.9", default-features = false } -thiserror = "1.0.61" +thiserror = { workspace = true } tokio = { workspace = true, default-features = false, features = ["net", "rt", "time"], optional = true } tracing = { workspace = true } socket2 = "0.5.7" diff --git a/transports/tls/Cargo.toml b/transports/tls/Cargo.toml index c27e14bb537..fce76e2aa79 100644 --- a/transports/tls/Cargo.toml +++ b/transports/tls/Cargo.toml @@ -15,7 +15,7 @@ libp2p-core = { workspace = true } libp2p-identity = { workspace = true } rcgen = { workspace = true } ring = { workspace = true } -thiserror = "1.0.61" +thiserror = { workspace = true } webpki = { version = "0.101.4", package = "rustls-webpki", features = ["std"] } x509-parser = "0.16.0" yasna = "0.5.2" diff --git a/transports/webrtc-websys/Cargo.toml b/transports/webrtc-websys/Cargo.toml index 453abe57f74..4663913c849 100644 --- a/transports/webrtc-websys/Cargo.toml +++ b/transports/webrtc-websys/Cargo.toml @@ -21,7 +21,7 @@ libp2p-core = { workspace = true } libp2p-identity = { workspace = true } libp2p-webrtc-utils = { workspace = true } send_wrapper = { version = "0.6.0", features = ["futures"] } -thiserror = "1" +thiserror = { workspace = true } tracing = { workspace = true } wasm-bindgen = { version = "0.2.90" } wasm-bindgen-futures = { version = "0.4.42" } diff --git a/transports/webrtc/Cargo.toml b/transports/webrtc/Cargo.toml index fc2748d93c3..4197a9419d8 100644 --- a/transports/webrtc/Cargo.toml +++ b/transports/webrtc/Cargo.toml @@ -26,7 +26,7 @@ rand = "0.8" rcgen = { workspace = true } serde = { version = "1.0", features = ["derive"] } stun = "0.6" -thiserror = "1" +thiserror = { workspace = true } tinytemplate = "1.2" tokio = { workspace = true, features = ["net"], optional = true } tokio-util = { version = "0.7", features = ["compat"], optional = true } diff --git a/transports/websocket-websys/Cargo.toml b/transports/websocket-websys/Cargo.toml index 1687d3c0fb5..1e604ba0478 100644 --- a/transports/websocket-websys/Cargo.toml +++ b/transports/websocket-websys/Cargo.toml @@ -18,7 +18,7 @@ libp2p-core = { workspace = true } tracing = { workspace = true } parking_lot = "0.12.3" send_wrapper = "0.6.0" -thiserror = "1.0.61" +thiserror = { workspace = true } wasm-bindgen = "0.2.90" web-sys = { version = "0.3.69", features = ["BinaryType", "CloseEvent", "MessageEvent", "WebSocket", "Window", "WorkerGlobalScope"] } diff --git a/transports/websocket/Cargo.toml b/transports/websocket/Cargo.toml index 07f84901eda..5c9734e420a 100644 --- a/transports/websocket/Cargo.toml +++ b/transports/websocket/Cargo.toml @@ -21,7 +21,7 @@ pin-project-lite = "0.2.14" rw-stream-sink = { workspace = true } soketto = "0.8.0" tracing = { workspace = true } -thiserror = "1.0.61" +thiserror = { workspace = true } url = "2.5" webpki-roots = "0.25" diff --git a/transports/webtransport-websys/Cargo.toml b/transports/webtransport-websys/Cargo.toml index eeb474d4a63..0cfc37bf041 100644 --- a/transports/webtransport-websys/Cargo.toml +++ b/transports/webtransport-websys/Cargo.toml @@ -23,7 +23,7 @@ multiaddr = { workspace = true } multihash = { workspace = true } once_cell = "1.19.0" send_wrapper = { version = "0.6.0", features = ["futures"] } -thiserror = "1.0.61" +thiserror = { workspace = true } tracing = { workspace = true } wasm-bindgen = "0.2.93" wasm-bindgen-futures = "0.4.43"