diff --git a/Cargo.lock b/Cargo.lock index 12de0ff48..fec0f48b3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -87,7 +87,7 @@ dependencies = [ "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] @@ -861,7 +861,7 @@ dependencies = [ "ipnet", "once_cell", "rand", - "thiserror", + "thiserror 1.0.69", "tinyvec", "tokio", "tracing", @@ -884,7 +884,7 @@ dependencies = [ "rand", "resolv-conf", "smallvec", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", ] @@ -1292,7 +1292,7 @@ dependencies = [ "http", "ipnet", "linkerd-dns-name", - "thiserror", + "thiserror 2.0.4", ] [[package]] @@ -1311,7 +1311,7 @@ dependencies = [ "linkerd-tonic-stream", "rangemap", "regex", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-stream", "tonic", @@ -1334,7 +1334,7 @@ dependencies = [ "pprof", "serde", "serde_json", - "thiserror", + "thiserror 2.0.4", "tokio", "tower", "tracing", @@ -1400,7 +1400,7 @@ dependencies = [ "regex", "semver", "serde_json", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-stream", "tonic", @@ -1421,7 +1421,7 @@ dependencies = [ "linkerd-proxy-client-policy", "linkerd-proxy-server-policy", "once_cell", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-test", "tonic", @@ -1457,7 +1457,7 @@ dependencies = [ "once_cell", "parking_lot", "rangemap", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-test", "tonic", @@ -1535,7 +1535,7 @@ dependencies = [ "parking_lot", "pin-project", "prometheus-client", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-rustls", "tokio-test", @@ -1562,7 +1562,7 @@ dependencies = [ "parking_lot", "pin-project", "regex", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-stream", "tokio-test", @@ -1585,7 +1585,7 @@ dependencies = [ "linkerd-error", "linkerd-io", "linkerd-stack", - "thiserror", + "thiserror 2.0.4", "tokio", "tower", "tracing", @@ -1613,7 +1613,7 @@ dependencies = [ "hickory-resolver", "linkerd-dns-name", "linkerd-error", - "thiserror", + "thiserror 2.0.4", "tokio", "tracing", ] @@ -1622,7 +1622,7 @@ dependencies = [ name = "linkerd-dns-name" version = "0.1.0" dependencies = [ - "thiserror", + "thiserror 2.0.4", "untrusted", ] @@ -1647,7 +1647,7 @@ name = "linkerd-error" version = "0.1.0" dependencies = [ "futures", - "thiserror", + "thiserror 2.0.4", ] [[package]] @@ -1668,7 +1668,7 @@ dependencies = [ "pin-project", "quickcheck", "rand", - "thiserror", + "thiserror 2.0.4", "tokio", ] @@ -1789,7 +1789,7 @@ dependencies = [ "parking_lot", "pin-project", "prometheus-client", - "thiserror", + "thiserror 2.0.4", "tokio", ] @@ -1820,7 +1820,7 @@ dependencies = [ "linkerd-stack", "linkerd-tracing", "parking_lot", - "thiserror", + "thiserror 2.0.4", "tokio", "tower", "tracing", @@ -1835,7 +1835,7 @@ dependencies = [ "maplit", "rand", "regex", - "thiserror", + "thiserror 2.0.4", "tracing", "url", ] @@ -1851,7 +1851,7 @@ dependencies = [ "linkerd-stack", "parking_lot", "pin-project", - "thiserror", + "thiserror 2.0.4", "tokio", "tracing", ] @@ -1883,7 +1883,7 @@ name = "linkerd-http-version" version = "0.1.0" dependencies = [ "http", - "thiserror", + "thiserror 2.0.4", ] [[package]] @@ -1894,7 +1894,7 @@ dependencies = [ "linkerd-error", "linkerd-metrics", "prometheus-client", - "thiserror", + "thiserror 2.0.4", "tracing", "url", ] @@ -1987,7 +1987,7 @@ dependencies = [ "ring", "rustls-pemfile", "rustls-webpki", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-rustls", "tracing", @@ -2075,7 +2075,7 @@ dependencies = [ "linkerd-pool", "linkerd-stack", "parking_lot", - "thiserror", + "thiserror 2.0.4", "tokio", "tower-test", "tracing", @@ -2169,7 +2169,7 @@ dependencies = [ "parking_lot", "pin-project", "prometheus-client", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-stream", "tokio-test", @@ -2197,7 +2197,7 @@ dependencies = [ "once_cell", "prost-types", "quickcheck", - "thiserror", + "thiserror 2.0.4", "tonic", ] @@ -2260,7 +2260,7 @@ dependencies = [ "parking_lot", "pin-project", "rand", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-test", "tower", @@ -2283,7 +2283,7 @@ dependencies = [ "linkerd2-proxy-api", "parking_lot", "pin-project", - "thiserror", + "thiserror 2.0.4", "tokio", "tonic", "tracing", @@ -2297,7 +2297,7 @@ dependencies = [ "linkerd-error", "linkerd-proxy-core", "pin-project", - "thiserror", + "thiserror 2.0.4", "tower", "tracing", ] @@ -2315,7 +2315,7 @@ dependencies = [ "maplit", "prost-types", "quickcheck", - "thiserror", + "thiserror 2.0.4", "tokio", ] @@ -2333,7 +2333,7 @@ dependencies = [ "rcgen", "simple_asn1", "spiffe-proto", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-test", "tonic", @@ -2363,7 +2363,7 @@ dependencies = [ "prost-types", "quickcheck", "rand", - "thiserror", + "thiserror 2.0.4", "tokio", "tonic", "tower", @@ -2395,7 +2395,7 @@ dependencies = [ "linkerd-io", "linkerd-stack", "socket2", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-stream", "tracing", @@ -2438,7 +2438,7 @@ dependencies = [ "linkerd-error", "linkerd-stack", "parking_lot", - "thiserror", + "thiserror 2.0.4", "tracing", ] @@ -2463,7 +2463,7 @@ dependencies = [ "prost-types", "quickcheck", "regex", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-stream", "tonic", @@ -2488,7 +2488,7 @@ dependencies = [ "linkerd-tracing", "parking_lot", "pin-project", - "thiserror", + "thiserror 2.0.4", "tokio", "tokio-test", "tokio-util", @@ -2544,7 +2544,7 @@ dependencies = [ "linkerd-stack", "linkerd-tracing", "pin-project", - "thiserror", + "thiserror 2.0.4", "tokio", "tower", "tracing", @@ -2560,7 +2560,7 @@ dependencies = [ "linkerd2-proxy-api", "rand", "regex", - "thiserror", + "thiserror 2.0.4", "tracing", ] @@ -2611,7 +2611,7 @@ dependencies = [ "linkerd-error", "linkerd-stack", "rand", - "thiserror", + "thiserror 1.0.69", "tower", "tracing", ] @@ -2692,7 +2692,7 @@ dependencies = [ "prost", "prost-types", "quickcheck", - "thiserror", + "thiserror 1.0.69", "tonic", ] @@ -2954,7 +2954,7 @@ dependencies = [ "futures-sink", "js-sys", "pin-project-lite", - "thiserror", + "thiserror 1.0.69", "tracing", ] @@ -2981,7 +2981,7 @@ dependencies = [ "opentelemetry", "percent-encoding", "rand", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3111,7 +3111,7 @@ dependencies = [ "smallvec", "symbolic-demangle", "tempfile", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3564,7 +3564,7 @@ checksum = "adc4e5204eb1910f40f9cfa375f6f05b68c3abac4b6fd879c8ff5e7ae8a0a085" dependencies = [ "num-bigint", "num-traits", - "thiserror", + "thiserror 1.0.69", "time", ] @@ -3701,18 +3701,38 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.68" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02dd99dc800bbb97186339685293e1cc5d9df1f8fae2d0aecd9ff1c77efea892" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f49a1853cf82743e3b7950f77e0f4d622ca36cf4317cba00c767838bac8d490" +dependencies = [ + "thiserror-impl 2.0.4", ] [[package]] name = "thiserror-impl" -version = "1.0.68" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7c61ec9a6f64d2793d8a45faba21efbe3ced62a886d44c36a009b2b519b4c7e" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8381894bb3efe0c4acac3ded651301ceee58a15d47c2e34885ed1908ad667061" dependencies = [ "proc-macro2", "quote", @@ -4409,7 +4429,7 @@ dependencies = [ "nom", "oid-registry", "rusticata-macros", - "thiserror", + "thiserror 1.0.69", "time", ] diff --git a/deny.toml b/deny.toml index 5f952b429..7865a96bd 100644 --- a/deny.toml +++ b/deny.toml @@ -66,6 +66,8 @@ skip = [ { name = "hashbrown", version = "0.12" }, ] skip-tree = [ + # thiserror v2 is still propagating through the ecosystem + { name = "thiserror", version = "1" }, ] [sources] diff --git a/linkerd/addr/Cargo.toml b/linkerd/addr/Cargo.toml index 75b4587b8..908d9c893 100644 --- a/linkerd/addr/Cargo.toml +++ b/linkerd/addr/Cargo.toml @@ -10,7 +10,7 @@ publish = false http = "0.2" ipnet = "2.10" linkerd-dns-name = { path = "../dns/name" } -thiserror = "1" +thiserror = "2" [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } diff --git a/linkerd/app/Cargo.toml b/linkerd/app/Cargo.toml index 1420c6edf..9dd3f86f4 100644 --- a/linkerd/app/Cargo.toml +++ b/linkerd/app/Cargo.toml @@ -29,7 +29,7 @@ linkerd-opentelemetry = { path = "../opentelemetry" } linkerd-tonic-stream = { path = "../tonic-stream" } rangemap = "1" regex = "1" -thiserror = "1" +thiserror = "2" tokio = { version = "1", features = ["rt"] } tokio-stream = { version = "0.1", features = ["time", "sync"] } tonic = { version = "0.10", default-features = false, features = ["prost"] } diff --git a/linkerd/app/admin/Cargo.toml b/linkerd/app/admin/Cargo.toml index 3f1052da0..680657504 100644 --- a/linkerd/app/admin/Cargo.toml +++ b/linkerd/app/admin/Cargo.toml @@ -23,7 +23,7 @@ futures = { version = "0.3", default-features = false } pprof = { version = "0.14", optional = true, features = ["prost-codec"] } serde = "1" serde_json = "1" -thiserror = "1" +thiserror = "2" tokio = { version = "1", features = ["macros", "sync", "parking_lot"] } tracing = "0.1" diff --git a/linkerd/app/core/Cargo.toml b/linkerd/app/core/Cargo.toml index 0741d1cd0..bf0ba916f 100644 --- a/linkerd/app/core/Cargo.toml +++ b/linkerd/app/core/Cargo.toml @@ -23,7 +23,7 @@ ipnet = "2.10" prometheus-client = "0.22" regex = "1" serde_json = "1" -thiserror = "1" +thiserror = "2" tokio = { version = "1", features = ["macros", "sync", "parking_lot"] } tokio-stream = { version = "0.1", features = ["time"] } tonic = { version = "0.10", default-features = false, features = ["prost"] } diff --git a/linkerd/app/gateway/Cargo.toml b/linkerd/app/gateway/Cargo.toml index 86603399a..c95f5795e 100644 --- a/linkerd/app/gateway/Cargo.toml +++ b/linkerd/app/gateway/Cargo.toml @@ -14,7 +14,7 @@ linkerd-app-inbound = { path = "../inbound" } linkerd-app-outbound = { path = "../outbound" } linkerd-proxy-client-policy = { path = "../../proxy/client-policy" } once_cell = "1" -thiserror = "1" +thiserror = "2" tokio = { version = "1", features = ["sync"] } tonic = { version = "0.10", default-features = false } tower = { version = "0.4", default-features = false } diff --git a/linkerd/app/inbound/Cargo.toml b/linkerd/app/inbound/Cargo.toml index 677b1fa90..9e152aa58 100644 --- a/linkerd/app/inbound/Cargo.toml +++ b/linkerd/app/inbound/Cargo.toml @@ -34,7 +34,7 @@ linkerd2-proxy-api = { workspace = true, features = ["inbound"] } once_cell = "1" parking_lot = "0.12" rangemap = "1" -thiserror = "1" +thiserror = "2" tokio = { version = "1", features = ["sync"] } tonic = { version = "0.10", default-features = false } tower = { version = "0.4", features = ["util"] } diff --git a/linkerd/app/outbound/Cargo.toml b/linkerd/app/outbound/Cargo.toml index 53685e424..50893e954 100644 --- a/linkerd/app/outbound/Cargo.toml +++ b/linkerd/app/outbound/Cargo.toml @@ -27,7 +27,7 @@ once_cell = "1" parking_lot = "0.12" pin-project = "1" prometheus-client = "0.22" -thiserror = "1" +thiserror = "2" tokio = { version = "1", features = ["sync"] } tonic = { version = "0.10", default-features = false } tower = { version = "0.4", features = ["util"] } diff --git a/linkerd/app/test/Cargo.toml b/linkerd/app/test/Cargo.toml index c11fe1009..5aaf994e6 100644 --- a/linkerd/app/test/Cargo.toml +++ b/linkerd/app/test/Cargo.toml @@ -32,7 +32,7 @@ tokio-stream = { version = "0.1", features = ["sync"] } tonic = { version = "0.10", default-features = false, optional = true } tower = { version = "0.4", default-features = false } tracing = "0.1" -thiserror = "1" +thiserror = "2" [dependencies.tracing-subscriber] version = "0.3" diff --git a/linkerd/detect/Cargo.toml b/linkerd/detect/Cargo.toml index 18392fd10..4ca72b7e3 100644 --- a/linkerd/detect/Cargo.toml +++ b/linkerd/detect/Cargo.toml @@ -13,6 +13,6 @@ linkerd-error = { path = "../error" } linkerd-io = { path = "../io" } linkerd-stack = { path = "../stack" } tokio = { version = "1", features = ["time"] } -thiserror = "1" +thiserror = "2" tower = "0.4" tracing = "0.1" diff --git a/linkerd/detect/src/lib.rs b/linkerd/detect/src/lib.rs index 5a7f66905..a2c25926f 100644 --- a/linkerd/detect/src/lib.rs +++ b/linkerd/detect/src/lib.rs @@ -31,7 +31,7 @@ pub trait Detect: Clone + Send + Sync + 'static { pub type Result
= StdResult