diff --git a/Cargo.lock b/Cargo.lock index 1ed06136646..853aa728c34 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -184,7 +184,7 @@ dependencies = [ "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] @@ -425,7 +425,7 @@ checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -930,7 +930,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -1207,7 +1207,7 @@ checksum = "83fdaf97f4804dcebfa5862639bc9ce4121e82140bec2a987ac5140294865b5b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -1324,7 +1324,7 @@ checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -1429,7 +1429,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -1688,7 +1688,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -1965,7 +1965,7 @@ dependencies = [ "once_cell", "rand 0.8.5", "socket2 0.5.5", - "thiserror", + "thiserror 1.0.69", "tinyvec", "tokio", "tracing", @@ -1988,7 +1988,7 @@ dependencies = [ "rand 0.8.5", "resolv-conf", "smallvec", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", ] @@ -2375,7 +2375,7 @@ dependencies = [ "rand 0.8.5", "rtcp", "rtp", - "thiserror", + "thiserror 1.0.69", "tokio", "waitgroup", "webrtc-srtp", @@ -2599,7 +2599,7 @@ dependencies = [ "multiaddr", "pin-project", "rw-stream-sink", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing-subscriber", ] @@ -2681,7 +2681,7 @@ dependencies = [ "rw-stream-sink", "serde", "smallvec", - "thiserror", + "thiserror 2.0.17", "tracing", "unsigned-varint 0.8.0", "void", @@ -2715,7 +2715,7 @@ dependencies = [ "quick-protobuf", "quick-protobuf-codec", "rand 0.8.5", - "thiserror", + "thiserror 2.0.17", "tracing", "tracing-subscriber", "void", @@ -2755,7 +2755,7 @@ dependencies = [ "quick-protobuf-codec", "rand 0.8.5", "smallvec", - "thiserror", + "thiserror 2.0.17", "tracing", ] @@ -2814,7 +2814,7 @@ dependencies = [ "quick-protobuf", "quick-protobuf-codec", "smallvec", - "thiserror", + "thiserror 2.0.17", "tracing", "tracing-subscriber", "void", @@ -2843,7 +2843,7 @@ dependencies = [ "serde", "serde_json", "sha2 0.10.8", - "thiserror", + "thiserror 2.0.17", "tracing", "void", "zeroize", @@ -2877,7 +2877,7 @@ dependencies = [ "serde", "sha2 0.10.8", "smallvec", - "thiserror", + "thiserror 2.0.17", "tracing", "tracing-subscriber", "uint", @@ -3002,7 +3002,7 @@ dependencies = [ "sha2 0.10.8", "snow", "static_assertions", - "thiserror", + "thiserror 2.0.17", "tracing", "tracing-subscriber", "x25519-dalek", @@ -3032,7 +3032,7 @@ dependencies = [ "rand 0.8.5", "serde", "serde_json", - "thiserror", + "thiserror 2.0.17", "tokio", "tracing", "tracing-subscriber", @@ -3121,7 +3121,7 @@ dependencies = [ "ring 0.16.20", "rustls 0.21.9", "socket2 0.5.5", - "thiserror", + "thiserror 2.0.17", "tokio", "tracing", "tracing-subscriber", @@ -3150,7 +3150,7 @@ dependencies = [ "quickcheck-ext", "rand 0.8.5", "static_assertions", - "thiserror", + "thiserror 2.0.17", "tracing", "tracing-subscriber", "void", @@ -3179,7 +3179,7 @@ dependencies = [ "quick-protobuf", "quick-protobuf-codec", "rand 0.8.5", - "thiserror", + "thiserror 2.0.17", "tokio", "tracing", "tracing-subscriber", @@ -3292,7 +3292,7 @@ dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -3346,7 +3346,7 @@ dependencies = [ "ring 0.16.20", "rustls 0.21.9", "rustls-webpki", - "thiserror", + "thiserror 2.0.17", "tokio", "x509-parser", "yasna", @@ -3398,7 +3398,7 @@ dependencies = [ "rcgen", "serde", "stun", - "thiserror", + "thiserror 2.0.17", "tinytemplate", "tokio", "tokio-util", @@ -3424,7 +3424,7 @@ dependencies = [ "rand 0.8.5", "serde", "sha2 0.10.8", - "thiserror", + "thiserror 2.0.17", "tinytemplate", "tracing", ] @@ -3442,7 +3442,7 @@ dependencies = [ "libp2p-identity", "libp2p-webrtc-utils", "send_wrapper 0.6.0", - "thiserror", + "thiserror 2.0.17", "tracing", "wasm-bindgen", "wasm-bindgen-futures", @@ -3484,7 +3484,7 @@ dependencies = [ "libp2p-yamux", "parking_lot", "send_wrapper 0.6.0", - "thiserror", + "thiserror 2.0.17", "tracing", "wasm-bindgen", "web-sys", @@ -3503,7 +3503,7 @@ dependencies = [ "multibase", "multihash", "send_wrapper 0.6.0", - "thiserror", + "thiserror 2.0.17", "tracing", "wasm-bindgen", "wasm-bindgen-futures", @@ -3519,7 +3519,7 @@ dependencies = [ "futures", "libp2p-core", "libp2p-muxer-test-harness", - "thiserror", + "thiserror 2.0.17", "tracing", "yamux 0.12.1", "yamux 0.13.1", @@ -3866,7 +3866,7 @@ dependencies = [ "anyhow", "byteorder", "paste", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3880,7 +3880,7 @@ dependencies = [ "log", "netlink-packet-core", "netlink-sys", - "thiserror", + "thiserror 1.0.69", "tokio", ] @@ -4056,7 +4056,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -4101,7 +4101,7 @@ dependencies = [ "opentelemetry_api", "opentelemetry_sdk", "prost", - "thiserror", + "thiserror 1.0.69", "tokio", "tonic", ] @@ -4139,7 +4139,7 @@ dependencies = [ "js-sys", "once_cell", "pin-project-lite", - "thiserror", + "thiserror 1.0.69", "urlencoding", ] @@ -4161,7 +4161,7 @@ dependencies = [ "rand 0.8.5", "regex", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", ] @@ -4282,7 +4282,7 @@ checksum = "266c042b60c9c76b8d53061e52b2e0d1116abc57cefc8c5cd671619a56ac3690" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -4452,9 +4452,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.78" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" +checksum = "9695f8df41bb4f3d222c95a67532365f569318332d03d5f3f67f37b20e6ebdf0" dependencies = [ "unicode-ident", ] @@ -4479,7 +4479,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -4530,7 +4530,7 @@ dependencies = [ "futures", "quick-protobuf", "quickcheck-ext", - "thiserror", + "thiserror 2.0.17", "unsigned-varint 0.8.0", ] @@ -4568,7 +4568,7 @@ dependencies = [ "quinn-udp", "rustc-hash", "rustls 0.21.9", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", ] @@ -4585,7 +4585,7 @@ dependencies = [ "rustc-hash", "rustls 0.21.9", "slab", - "thiserror", + "thiserror 1.0.69", "tinyvec", "tracing", ] @@ -4763,7 +4763,7 @@ checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ "getrandom 0.2.12", "redox_syscall 0.2.16", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -4963,7 +4963,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3677908cadfbecb4cc1da9a56a32524fae4ebdfa7c2ea93886e1b1e846488cb9" dependencies = [ "bytes", - "thiserror", + "thiserror 1.0.69", "webrtc-util", ] @@ -4979,7 +4979,7 @@ dependencies = [ "netlink-packet-route", "netlink-proto", "nix 0.24.3", - "thiserror", + "thiserror 1.0.69", "tokio", ] @@ -4992,7 +4992,7 @@ dependencies = [ "bytes", "rand 0.8.5", "serde", - "thiserror", + "thiserror 1.0.69", "webrtc-util", ] @@ -5017,7 +5017,7 @@ dependencies = [ "quote", "rust-embed-utils", "shellexpand", - "syn 2.0.49", + "syn 2.0.111", "walkdir", ] @@ -5223,7 +5223,7 @@ checksum = "4653054c30ebce63658762eb0d64e27673868a95564474811ae6c220cf767640" dependencies = [ "rand 0.8.5", "substring", - "thiserror", + "thiserror 1.0.69", "url", ] @@ -5302,7 +5302,7 @@ checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -5335,7 +5335,7 @@ checksum = "8725e1dfadb3a50f7e5ce0b1a540466f6ed3fe7a0fca2ac2b8b831d31316bd00" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -5618,7 +5618,7 @@ dependencies = [ "rand 0.8.5", "ring 0.16.20", "subtle", - "thiserror", + "thiserror 1.0.69", "tokio", "url", "webrtc-util", @@ -5652,9 +5652,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.49" +version = "2.0.111" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "915aea9e586f80826ee59f8453c1101f9d1c4b3964cd2460185ee8e299ada496" +checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87" dependencies = [ "proc-macro2", "quote", @@ -5757,7 +5757,7 @@ dependencies = [ "serde_repr", "stringmatch", "thirtyfour-macros", - "thiserror", + "thiserror 1.0.69", "tokio", "url", ] @@ -5776,22 +5776,42 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.57" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8" +dependencies = [ + "thiserror-impl 2.0.17", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.111", ] [[package]] name = "thiserror-impl" -version = "1.0.57" +version = "2.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" +checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -5893,7 +5913,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -6048,7 +6068,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -6163,7 +6183,7 @@ dependencies = [ "rand 0.8.5", "ring 0.16.20", "stun", - "thiserror", + "thiserror 1.0.69", "tokio", "webrtc-util", ] @@ -6405,7 +6425,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", "wasm-bindgen-shared", ] @@ -6439,7 +6459,7 @@ checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -6472,7 +6492,7 @@ checksum = "a5211b7550606857312bba1d978a8ec75692eae187becc5e680444fffc5e6f89" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -6559,7 +6579,7 @@ dependencies = [ "sha2 0.10.8", "smol_str", "stun", - "thiserror", + "thiserror 1.0.69", "time", "tokio", "turn", @@ -6583,7 +6603,7 @@ checksum = "a45d2461d0e0bf93f181e30eb0b40df32b8bf3efb89c53cebb1990e603e2067d" dependencies = [ "bytes", "log", - "thiserror", + "thiserror 1.0.69", "tokio", "webrtc-sctp", "webrtc-util", @@ -6619,7 +6639,7 @@ dependencies = [ "sha1", "sha2 0.10.8", "subtle", - "thiserror", + "thiserror 1.0.69", "tokio", "webrtc-util", "x25519-dalek", @@ -6640,7 +6660,7 @@ dependencies = [ "serde", "serde_json", "stun", - "thiserror", + "thiserror 1.0.69", "tokio", "turn", "url", @@ -6658,7 +6678,7 @@ checksum = "62bebbd40e7f8b630a0f1a74783dbfff1edfc0ccaae891c4689891156a8c4d8c" dependencies = [ "log", "socket2 0.5.5", - "thiserror", + "thiserror 1.0.69", "tokio", "webrtc-util", ] @@ -6673,7 +6693,7 @@ dependencies = [ "bytes", "rand 0.8.5", "rtp", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -6688,7 +6708,7 @@ dependencies = [ "crc", "log", "rand 0.8.5", - "thiserror", + "thiserror 1.0.69", "tokio", "webrtc-util", ] @@ -6711,7 +6731,7 @@ dependencies = [ "rtp", "sha1", "subtle", - "thiserror", + "thiserror 1.0.69", "tokio", "webrtc-util", ] @@ -6732,7 +6752,7 @@ dependencies = [ "log", "nix 0.26.4", "rand 0.8.5", - "thiserror", + "thiserror 1.0.69", "tokio", "winapi", ] @@ -6979,7 +6999,7 @@ dependencies = [ "oid-registry", "ring 0.16.20", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] @@ -7055,7 +7075,7 @@ checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] [[package]] @@ -7075,5 +7095,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.49", + "syn 2.0.111", ] diff --git a/core/Cargo.toml b/core/Cargo.toml index 619cd357744..c37046d83f8 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.12.0" -thiserror = "1.0" +thiserror = "2.0" tracing = "0.1.37" unsigned-varint = { workspace = true } void = "1" diff --git a/identity/Cargo.toml b/identity/Cargo.toml index 920b9a990e4..ab17401f7e9 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 = { version = "2.0", optional = true } void = { version = "1.0", optional = true } zeroize = { version = "1.7", optional = true } diff --git a/misc/quick-protobuf-codec/Cargo.toml b/misc/quick-protobuf-codec/Cargo.toml index bc07b86b427..78c146a9da5 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 = "2.0" 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 7173dedae7b..2f89b4b320f 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 = "2" tinytemplate = "1.2" tracing = "0.1.37" diff --git a/muxers/yamux/Cargo.toml b/muxers/yamux/Cargo.toml index 14a5c0fe145..bf610986faa 100644 --- a/muxers/yamux/Cargo.toml +++ b/muxers/yamux/Cargo.toml @@ -14,7 +14,7 @@ categories = ["network-programming", "asynchronous"] either = "1" futures = "0.3.30" libp2p-core = { workspace = true } -thiserror = "1.0" +thiserror = "2.0" yamux012 = { version = "0.12.1", package = "yamux" } yamux013 = { version = "0.13.1", package = "yamux" } tracing = "0.1.37" diff --git a/protocols/dcutr/Cargo.toml b/protocols/dcutr/Cargo.toml index aed7e2bf762..1f6eb6c2ed8 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 = "2.0" tracing = "0.1.37" void = "1" lru = "0.12.1" diff --git a/protocols/floodsub/Cargo.toml b/protocols/floodsub/Cargo.toml index e1bd23fe2d1..3e8f69fd210 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.12.0" -thiserror = "1.0.57" +thiserror = "2.0.17" tracing = "0.1.37" # 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 2fb51d87627..19288dc8c3e 100644 --- a/protocols/identify/Cargo.toml +++ b/protocols/identify/Cargo.toml @@ -22,7 +22,7 @@ lru = "0.12.1" quick-protobuf-codec = { workspace = true } quick-protobuf = "0.8" smallvec = "1.12.0" -thiserror = "1.0" +thiserror = "2.0" tracing = "0.1.37" void = "1.0" either = "1.9.0" diff --git a/protocols/kad/Cargo.toml b/protocols/kad/Cargo.toml index bde0d5f7c84..384937e1565 100644 --- a/protocols/kad/Cargo.toml +++ b/protocols/kad/Cargo.toml @@ -31,7 +31,7 @@ void = "1.0" futures-timer = "3.0.2" instant = "0.1.12" serde = { version = "1.0", optional = true, features = ["derive"] } -thiserror = "1" +thiserror = "2" tracing = "0.1.37" [dev-dependencies] diff --git a/protocols/perf/Cargo.toml b/protocols/perf/Cargo.toml index 68b1088a42c..634f3dcab4b 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 = "2.0" tracing = "0.1.37" tracing-subscriber = { version = "0.3", features = ["env-filter"] } tokio = { version = "1.36", default-features = false, features = ["macros", "rt", "rt-multi-thread"] } diff --git a/protocols/relay/Cargo.toml b/protocols/relay/Cargo.toml index 94b9deb1a64..45a9a07eca9 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 = "2.0" tracing = "0.1.37" void = "1" diff --git a/protocols/rendezvous/Cargo.toml b/protocols/rendezvous/Cargo.toml index f9272d011e3..2ed361d0b9b 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 = "2" tracing = "0.1.37" void = "1" diff --git a/transports/noise/Cargo.toml b/transports/noise/Cargo.toml index 83bb6de8c0e..f156964a135 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.57" +thiserror = "2.0.17" tracing = "0.1.37" x25519-dalek = "2" zeroize = "1" diff --git a/transports/quic/Cargo.toml b/transports/quic/Cargo.toml index b4bf93d6e10..bc4a90e75b2 100644 --- a/transports/quic/Cargo.toml +++ b/transports/quic/Cargo.toml @@ -21,7 +21,7 @@ parking_lot = "0.12.0" quinn = { version = "0.10.2", default-features = false, features = ["tls-rustls", "futures-io"] } rand = "0.8.5" rustls = { version = "0.21.9", default-features = false } -thiserror = "1.0.57" +thiserror = "2.0.17" tokio = { version = "1.36.0", default-features = false, features = ["net", "rt", "time"], optional = true } tracing = "0.1.37" socket2 = "0.5.5" diff --git a/transports/tls/Cargo.toml b/transports/tls/Cargo.toml index 0ca134d418b..c945fbd556f 100644 --- a/transports/tls/Cargo.toml +++ b/transports/tls/Cargo.toml @@ -15,7 +15,7 @@ libp2p-core = { workspace = true } libp2p-identity = { workspace = true } rcgen = "0.11.3" ring = "0.16.20" -thiserror = "1.0.57" +thiserror = "2.0.17" webpki = { version = "0.101.4", package = "rustls-webpki", features = ["std"] } x509-parser = "0.15.1" yasna = "0.5.2" diff --git a/transports/webrtc-websys/Cargo.toml b/transports/webrtc-websys/Cargo.toml index 728b6575f0a..8c3b1027bf5 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 = "2" tracing = "0.1.37" wasm-bindgen = { version = "0.2.90" } wasm-bindgen-futures = { version = "0.4.41" } diff --git a/transports/webrtc/Cargo.toml b/transports/webrtc/Cargo.toml index 1bd1bd57a61..1aab387c42b 100644 --- a/transports/webrtc/Cargo.toml +++ b/transports/webrtc/Cargo.toml @@ -26,7 +26,7 @@ rand = "0.8" rcgen = "0.11.3" serde = { version = "1.0", features = ["derive"] } stun = "0.5" -thiserror = "1" +thiserror = "2" tinytemplate = "1.2" tokio = { version = "1.36", 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 5855b582c80..39c28337430 100644 --- a/transports/websocket-websys/Cargo.toml +++ b/transports/websocket-websys/Cargo.toml @@ -18,7 +18,7 @@ libp2p-core = { workspace = true } tracing = "0.1.37" parking_lot = "0.12.1" send_wrapper = "0.6.0" -thiserror = "1.0.57" +thiserror = "2.0.17" wasm-bindgen = "0.2.90" web-sys = { version = "0.3.68", features = ["BinaryType", "CloseEvent", "MessageEvent", "WebSocket", "Window", "WorkerGlobalScope"] } diff --git a/transports/webtransport-websys/Cargo.toml b/transports/webtransport-websys/Cargo.toml index b9f8f36d760..d453416b652 100644 --- a/transports/webtransport-websys/Cargo.toml +++ b/transports/webtransport-websys/Cargo.toml @@ -22,7 +22,7 @@ libp2p-noise = { workspace = true } multiaddr = { workspace = true } multihash = { workspace = true } send_wrapper = { version = "0.6.0", features = ["futures"] } -thiserror = "1.0.57" +thiserror = "2.0.17" tracing = "0.1.37" wasm-bindgen = "0.2.90" wasm-bindgen-futures = "0.4.41"