diff --git a/Cargo.lock b/Cargo.lock index 26bb220ac..bc00350b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -614,7 +614,7 @@ dependencies = [ "semver", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -628,7 +628,7 @@ dependencies = [ "semver", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -783,7 +783,7 @@ dependencies = [ "k256 0.13.4", "serde", "sha2 0.10.8", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -799,7 +799,7 @@ dependencies = [ "pbkdf2 0.12.2", "rand", "sha2 0.10.8", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -819,7 +819,7 @@ dependencies = [ "serde_derive", "sha2 0.10.8", "sha3", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1230,7 +1230,7 @@ dependencies = [ "serde", "serde-wasm-bindgen", "talc", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", "wasm-bindgen", @@ -1554,7 +1554,7 @@ dependencies = [ "serde_json", "sha2 0.10.8", "sha3", - "thiserror", + "thiserror 1.0.69", "uuid 0.8.2", ] @@ -1571,7 +1571,7 @@ dependencies = [ "serde", "serde_json", "sha3", - "thiserror", + "thiserror 1.0.69", "uint", ] @@ -1650,7 +1650,7 @@ dependencies = [ "pin-project", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1718,7 +1718,7 @@ dependencies = [ "strum", "syn 2.0.87", "tempfile", - "thiserror", + "thiserror 1.0.69", "tiny-keccak", "unicode-xid", ] @@ -1735,7 +1735,7 @@ dependencies = [ "semver", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tracing", ] @@ -1758,7 +1758,7 @@ dependencies = [ "reqwest 0.11.27", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", "tracing-futures", @@ -1791,7 +1791,7 @@ dependencies = [ "reqwest 0.11.27", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-tungstenite 0.20.1", "tracing", @@ -1818,7 +1818,7 @@ dependencies = [ "ethers-core", "rand", "sha2 0.10.8", - "thiserror", + "thiserror 1.0.69", "tracing", ] @@ -1846,7 +1846,7 @@ dependencies = [ "serde_json", "solang-parser", "svm-rs", - "thiserror", + "thiserror 1.0.69", "tiny-keccak", "tokio", "tracing", @@ -3348,7 +3348,7 @@ dependencies = [ "openmls", "openmls_rust_crypto", "rand", - "thiserror", + "thiserror 2.0.3", "tokio", "tonic", "tracing", @@ -3680,7 +3680,7 @@ dependencies = [ "openmls_traits", "rayon", "serde", - "thiserror", + "thiserror 1.0.69", "tls_codec", ] @@ -3706,7 +3706,7 @@ dependencies = [ "openmls_traits", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3729,7 +3729,7 @@ dependencies = [ "rand_chacha", "serde", "sha2 0.10.8", - "thiserror", + "thiserror 1.0.69", "tls_codec", ] @@ -4492,7 +4492,7 @@ checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ "getrandom", "libredox", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -5184,7 +5184,7 @@ checksum = "adc4e5204eb1910f40f9cfa375f6f05b68c3abac4b6fd879c8ff5e7ae8a0a085" dependencies = [ "num-bigint", "num-traits", - "thiserror", + "thiserror 1.0.69", "time", ] @@ -5235,7 +5235,7 @@ dependencies = [ "lalrpop", "lalrpop-util", "phf", - "thiserror", + "thiserror 1.0.69", "unicode-xid", ] @@ -5351,7 +5351,7 @@ dependencies = [ "serde", "serde_json", "sha2 0.10.8", - "thiserror", + "thiserror 1.0.69", "url", "zip", ] @@ -5506,7 +5506,16 @@ version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[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]] @@ -5520,6 +5529,17 @@ dependencies = [ "syn 2.0.87", ] +[[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.87", +] + [[package]] name = "thread-id" version = "5.0.0" @@ -6043,7 +6063,7 @@ dependencies = [ "rand", "rustls 0.21.12", "sha1", - "thiserror", + "thiserror 1.0.69", "url", "utf-8", ] @@ -6062,7 +6082,7 @@ dependencies = [ "log", "rand", "sha1", - "thiserror", + "thiserror 1.0.69", "url", "utf-8", ] @@ -6871,7 +6891,7 @@ dependencies = [ "pharos", "rustc_version", "send_wrapper 0.6.0", - "thiserror", + "thiserror 1.0.69", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", @@ -6942,7 +6962,7 @@ dependencies = [ "reqwest 0.12.9", "serde", "serde_json", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "wasm-bindgen-test", @@ -6964,7 +6984,7 @@ dependencies = [ "prost", "serde", "serde_json", - "thiserror", + "thiserror 2.0.3", "timeago", "tokio", "tracing", @@ -6998,7 +7018,7 @@ dependencies = [ "serde", "sha2 0.10.8", "sha3", - "thiserror", + "thiserror 2.0.3", "tls_codec", "tracing", "wasm-bindgen-futures", @@ -7027,7 +7047,7 @@ dependencies = [ "serde", "serde_json", "sha2 0.10.8", - "thiserror", + "thiserror 2.0.3", "tokio", "tracing", "url", @@ -7078,7 +7098,7 @@ dependencies = [ "serde", "serde_json", "tempfile", - "thiserror", + "thiserror 2.0.3", "tls_codec", "tokio", "tokio-stream", @@ -7152,7 +7172,7 @@ dependencies = [ "log", "parking_lot 0.12.3", "rand", - "thiserror", + "thiserror 2.0.3", "thread-id", "tokio", "uniffi", diff --git a/Cargo.toml b/Cargo.toml index 03b44e811..1c0f868f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ serde = { version = "1.0", default-features = false } serde_json = { version = "1.0", default-features = false } sha2 = "0.10.8" sha3 = "0.10.8" -thiserror = "1.0" +thiserror = "2.0" tls_codec = "0.4.1" tokio = { version = "1.35.1", default-features = false } # Changing this version and rustls may potentially break the android build. Use Caution. diff --git a/xmtp_api_http/Cargo.toml b/xmtp_api_http/Cargo.toml index 8ba617cb3..b26a414a9 100644 --- a/xmtp_api_http/Cargo.toml +++ b/xmtp_api_http/Cargo.toml @@ -14,7 +14,7 @@ tracing.workspace = true reqwest = { version = "0.12.5", features = ["json", "stream"] } serde = { workspace = true } serde_json = { workspace = true } -thiserror = "1.0" +thiserror = "2.0" tokio = { workspace = true, features = ["sync", "rt", "macros"] } xmtp_proto = { path = "../xmtp_proto", features = ["proto_full"] } async-trait = "0.1"