From 07db49c07cc2ffaa5d5af6aa7f15ca04d09161a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:44:32 +0100 Subject: [PATCH] build(deps): bump thiserror from 1.0.68 to 2.0.0 (#7462) Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.68 to 2.0.0. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.68...2.0.0) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 220 ++++++++++-------- associated-token-account/program/Cargo.toml | 2 +- binary-option/program/Cargo.toml | 2 +- binary-oracle-pair/program/Cargo.toml | 2 +- governance/addin-mock/program/Cargo.toml | 2 +- governance/chat/program/Cargo.toml | 2 +- governance/program/Cargo.toml | 2 +- governance/test-sdk/Cargo.toml | 2 +- governance/tools/Cargo.toml | 2 +- libraries/concurrent-merkle-tree/Cargo.toml | 2 +- libraries/math-example/Cargo.toml | 2 +- libraries/merkle-tree-reference/Cargo.toml | 2 +- libraries/pod/Cargo.toml | 2 +- libraries/program-error/Cargo.toml | 2 +- libraries/tlv-account-resolution/Cargo.toml | 2 +- libraries/type-length-value/Cargo.toml | 2 +- managed-token/program/Cargo.toml | 2 +- name-service/program/Cargo.toml | 2 +- record/program/Cargo.toml | 2 +- single-pool/program/Cargo.toml | 2 +- stake-pool/program/Cargo.toml | 2 +- stateless-asks/program/Cargo.toml | 2 +- token-group/interface/Cargo.toml | 2 +- token-lending/program/Cargo.toml | 2 +- token-metadata/interface/Cargo.toml | 2 +- token-swap/program/Cargo.toml | 2 +- token-upgrade/program/Cargo.toml | 2 +- token-wrap/program/Cargo.toml | 2 +- token/client/Cargo.toml | 2 +- .../proof-extraction/Cargo.toml | 2 +- .../proof-generation/Cargo.toml | 2 +- .../proof-tests/Cargo.toml | 2 +- token/program-2022/Cargo.toml | 2 +- token/program/Cargo.toml | 2 +- token/transfer-hook/interface/Cargo.toml | 2 +- 35 files changed, 154 insertions(+), 134 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dc86ce9f8ef..111f6248c03 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -78,7 +78,7 @@ dependencies = [ "log", "solana-sdk", "solana-transaction-status", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -418,7 +418,7 @@ dependencies = [ "nom", "num-traits", "rusticata-macros", - "thiserror", + "thiserror 1.0.68", "time", ] @@ -667,7 +667,7 @@ dependencies = [ "borsh 1.5.1", "solana-program", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", "uint", ] @@ -993,7 +993,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "190baaad529bcfbde9e1a19022c42781bdb6ff9de25721abdb8fd98c0807730b" dependencies = [ "libc", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -2827,7 +2827,7 @@ dependencies = [ "combine 4.6.7", "jni-sys", "log", - "thiserror", + "thiserror 1.0.68", "walkdir", ] @@ -3125,7 +3125,7 @@ dependencies = [ "ark-bn254", "ark-ff", "num-bigint 0.4.6", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -3688,7 +3688,7 @@ dependencies = [ "percent-encoding 2.3.1", "pin-project", "rand 0.8.5", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -4181,7 +4181,7 @@ dependencies = [ "rustc-hash 2.0.0", "rustls 0.23.16", "socket2", - "thiserror", + "thiserror 1.0.68", "tokio", "tracing", ] @@ -4199,7 +4199,7 @@ dependencies = [ "rustls 0.23.16", "rustls-platform-verifier", "slab", - "thiserror", + "thiserror 1.0.68", "tinyvec", "tracing", ] @@ -4492,7 +4492,7 @@ dependencies = [ "reqwest", "serde", "task-local-extensions", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -5253,7 +5253,7 @@ dependencies = [ "spl-token-2022 4.0.0", "spl-token-group-interface 0.3.0", "spl-token-metadata-interface 0.4.0", - "thiserror", + "thiserror 1.0.68", "zstd", ] @@ -5329,7 +5329,7 @@ dependencies = [ "static_assertions", "tar", "tempfile", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -5348,7 +5348,7 @@ dependencies = [ "solana-program", "solana-program-runtime", "solana-sdk", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -5372,7 +5372,7 @@ dependencies = [ "solana-program", "solana-sdk", "tarpc", - "thiserror", + "thiserror 1.0.68", "tokio", "tokio-serde", ] @@ -5449,7 +5449,7 @@ dependencies = [ "ark-serialize", "bytemuck", "solana-program", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -5486,7 +5486,7 @@ dependencies = [ "solana-timings", "solana-type-overrides", "solana_rbpf", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -5540,7 +5540,7 @@ dependencies = [ "solana-derivation-path", "solana-remote-wallet", "solana-sdk", - "thiserror", + "thiserror 1.0.68", "tiny-bip39", "uriparse", "url 2.5.2", @@ -5559,7 +5559,7 @@ dependencies = [ "solana-remote-wallet", "solana-sdk", "solana-zk-token-sdk", - "thiserror", + "thiserror 1.0.68", "tiny-bip39", "uriparse", "url 2.5.2", @@ -5636,7 +5636,7 @@ dependencies = [ "solana-thin-client", "solana-tpu-client", "solana-udp-client", - "thiserror", + "thiserror 1.0.68", "tokio", ] @@ -5703,7 +5703,7 @@ dependencies = [ "solana-measure", "solana-metrics", "solana-sdk", - "thiserror", + "thiserror 1.0.68", "tokio", ] @@ -5788,7 +5788,7 @@ dependencies = [ "sys-info", "sysctl", "tempfile", - "thiserror", + "thiserror 1.0.68", "tokio", "trees", ] @@ -5836,7 +5836,7 @@ dependencies = [ "bytemuck_derive", "curve25519-dalek 4.1.3", "solana-program", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -5918,7 +5918,7 @@ dependencies = [ "solana-sdk", "solana-version", "spl-memo 5.0.0", - "thiserror", + "thiserror 1.0.68", "tokio", ] @@ -5980,7 +5980,7 @@ dependencies = [ "solana-runtime", "solana-sdk", "solana-transaction-status", - "thiserror", + "thiserror 1.0.68", "tokio", ] @@ -6032,7 +6032,7 @@ dependencies = [ "solana-vote", "solana-vote-program", "static_assertions", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -6181,7 +6181,7 @@ dependencies = [ "strum_macros 0.24.3", "tar", "tempfile", - "thiserror", + "thiserror 1.0.68", "tokio", "tokio-stream", "trees", @@ -6253,7 +6253,7 @@ dependencies = [ "log", "reqwest", "solana-sdk", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -6352,7 +6352,7 @@ dependencies = [ "solana-metrics", "solana-runtime", "solana-sdk", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -6364,7 +6364,7 @@ dependencies = [ "ark-bn254", "light-poseidon", "solana-define-syscall", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -6445,7 +6445,7 @@ dependencies = [ "solana-slot-history", "solana-stable-layout", "solana-transaction-error", - "thiserror", + "thiserror 1.0.68", "wasm-bindgen", ] @@ -6529,7 +6529,7 @@ dependencies = [ "solana-type-overrides", "solana-vote", "solana_rbpf", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -6564,7 +6564,7 @@ dependencies = [ "solana-timings", "solana-vote-program", "solana_rbpf", - "thiserror", + "thiserror 1.0.68", "tokio", ] @@ -6612,7 +6612,7 @@ dependencies = [ "solana-account-decoder", "solana-rpc-client-api", "solana-sdk", - "thiserror", + "thiserror 1.0.68", "tokio", "tokio-stream", "tokio-tungstenite", @@ -6642,7 +6642,7 @@ dependencies = [ "solana-rpc-client-api", "solana-sdk", "solana-streamer", - "thiserror", + "thiserror 1.0.68", "tokio", ] @@ -6673,7 +6673,7 @@ dependencies = [ "semver", "solana-derivation-path", "solana-sdk", - "thiserror", + "thiserror 1.0.68", "uriparse", ] @@ -6743,7 +6743,7 @@ dependencies = [ "spl-token 6.0.0", "spl-token-2022 4.0.0", "stream-cancel", - "thiserror", + "thiserror 1.0.68", "tokio", "tokio-util 0.7.1", ] @@ -6796,7 +6796,7 @@ dependencies = [ "solana-sdk", "solana-transaction-status-client-types", "solana-version", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -6807,7 +6807,7 @@ checksum = "7f0ab2d1ca3769c5058c689b438d35eb1cb7d2a32fc4b2b7c16fe72fa187927c" dependencies = [ "solana-rpc-client", "solana-sdk", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -6895,7 +6895,7 @@ dependencies = [ "symlink", "tar", "tempfile", - "thiserror", + "thiserror 1.0.68", "zstd", ] @@ -6912,7 +6912,7 @@ dependencies = [ "solana-pubkey", "solana-sdk", "solana-svm-transaction", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -6980,7 +6980,7 @@ dependencies = [ "solana-short-vec", "solana-signature", "solana-transaction-error", - "thiserror", + "thiserror 1.0.68", "wasm-bindgen", ] @@ -7005,7 +7005,7 @@ dependencies = [ "borsh 1.5.1", "libsecp256k1", "solana-define-syscall", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -7163,7 +7163,7 @@ dependencies = [ "solana-sdk", "solana-storage-proto", "solana-transaction-status", - "thiserror", + "thiserror 1.0.68", "tokio", "tonic", "zstd", @@ -7218,7 +7218,7 @@ dependencies = [ "solana-perf", "solana-sdk", "solana-transaction-metrics-tracker", - "thiserror", + "thiserror 1.0.68", "tokio", "tokio-util 0.7.1", "x509-parser", @@ -7251,7 +7251,7 @@ dependencies = [ "solana-timings", "solana-type-overrides", "solana-vote", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -7366,7 +7366,7 @@ dependencies = [ "solana-rpc-client", "solana-rpc-client-api", "solana-sdk", - "thiserror", + "thiserror 1.0.68", "tokio", ] @@ -7423,7 +7423,7 @@ dependencies = [ "spl-token-2022 4.0.0", "spl-token-group-interface 0.3.0", "spl-token-metadata-interface 0.4.0", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -7441,7 +7441,7 @@ dependencies = [ "solana-account-decoder-client-types", "solana-sdk", "solana-signature", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -7480,7 +7480,7 @@ dependencies = [ "solana-sdk", "solana-streamer", "static_assertions", - "thiserror", + "thiserror 1.0.68", "tokio", ] @@ -7505,7 +7505,7 @@ dependencies = [ "solana-net-utils", "solana-sdk", "solana-streamer", - "thiserror", + "thiserror 1.0.68", "tokio", ] @@ -7567,7 +7567,7 @@ dependencies = [ "serde", "serde_derive", "solana-sdk", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -7587,7 +7587,7 @@ dependencies = [ "solana-program", "solana-program-runtime", "solana-sdk", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -7655,7 +7655,7 @@ dependencies = [ "solana-program", "solana-sdk", "subtle", - "thiserror", + "thiserror 1.0.68", "wasm-bindgen", "zeroize", ] @@ -7704,7 +7704,7 @@ dependencies = [ "solana-program", "solana-sdk", "subtle", - "thiserror", + "thiserror 1.0.68", "zeroize", ] @@ -7722,7 +7722,7 @@ dependencies = [ "rand 0.8.5", "rustc-demangle", "scroll", - "thiserror", + "thiserror 1.0.68", "winapi 0.3.9", ] @@ -7760,7 +7760,7 @@ dependencies = [ "solana-program", "spl-token 6.0.0", "spl-token-2022 4.0.0", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -7774,7 +7774,7 @@ dependencies = [ "spl-associated-token-account-client", "spl-token 7.0.0", "spl-token-2022 6.0.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -7810,7 +7810,7 @@ dependencies = [ "solana-program-test", "solana-sdk", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", "uint", ] @@ -7823,7 +7823,7 @@ dependencies = [ "rand_distr", "solana-program", "spl-merkle-tree-reference", - "thiserror", + "thiserror 2.0.0", "tokio", ] @@ -7877,7 +7877,7 @@ dependencies = [ "quote", "sha2 0.10.8", "syn 2.0.87", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -7890,7 +7890,7 @@ dependencies = [ "quote", "sha2 0.10.8", "syn 2.0.87", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -8006,7 +8006,7 @@ dependencies = [ "spl-governance-test-sdk", "spl-governance-tools", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8038,7 +8038,7 @@ dependencies = [ "spl-governance-test-sdk", "spl-governance-tools", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8063,7 +8063,7 @@ dependencies = [ "spl-governance-test-sdk", "spl-governance-tools", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8082,7 +8082,7 @@ dependencies = [ "solana-program-test", "solana-sdk", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8098,7 +8098,7 @@ dependencies = [ "serde_derive", "solana-program", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8130,7 +8130,7 @@ dependencies = [ "spl-associated-token-account 6.0.0", "spl-associated-token-account-client", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8154,7 +8154,7 @@ dependencies = [ "solana-program-test", "solana-sdk", "spl-math", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8185,7 +8185,7 @@ name = "spl-merkle-tree-reference" version = "0.1.0" dependencies = [ "solana-program", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8198,7 +8198,7 @@ dependencies = [ "solana-program", "solana-program-test", "solana-sdk", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8233,7 +8233,7 @@ dependencies = [ "solana-program-option", "solana-pubkey", "solana-zk-sdk", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8246,7 +8246,7 @@ dependencies = [ "num-traits", "solana-program", "spl-program-error-derive 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -8260,7 +8260,7 @@ dependencies = [ "solana-program", "solana-sdk", "spl-program-error-derive 0.4.1", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8303,7 +8303,7 @@ dependencies = [ "solana-pubkey", "solana-rent", "solana-sdk", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8337,7 +8337,7 @@ dependencies = [ "spl-associated-token-account-client", "spl-token 7.0.0", "test-case", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8396,7 +8396,7 @@ dependencies = [ "spl-token 7.0.0", "spl-token-2022 6.0.0", "test-case", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8462,7 +8462,7 @@ dependencies = [ "spl-pod 0.5.0", "spl-program-error 0.6.0", "spl-type-length-value 0.7.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8477,7 +8477,7 @@ dependencies = [ "num-traits", "num_enum", "solana-program", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -8495,7 +8495,7 @@ dependencies = [ "solana-program", "solana-program-test", "solana-sdk", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8519,7 +8519,7 @@ dependencies = [ "spl-token-metadata-interface 0.4.0", "spl-transfer-hook-interface 0.7.0", "spl-type-length-value 0.5.0", - "thiserror", + "thiserror 1.0.68", ] [[package]] @@ -8555,7 +8555,7 @@ dependencies = [ "spl-token-metadata-interface 0.6.0", "spl-transfer-hook-interface 0.9.0", "spl-type-length-value 0.7.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8653,7 +8653,7 @@ dependencies = [ "spl-token-group-interface 0.5.0", "spl-token-metadata-interface 0.6.0", "spl-transfer-hook-interface 0.9.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8695,7 +8695,7 @@ dependencies = [ "solana-program", "solana-zk-sdk", "spl-pod 0.5.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8704,7 +8704,7 @@ version = "0.2.0" dependencies = [ "curve25519-dalek 4.1.3", "solana-zk-sdk", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8715,7 +8715,7 @@ dependencies = [ "solana-zk-sdk", "spl-token-confidential-transfer-proof-extraction", "spl-token-confidential-transfer-proof-generation", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8763,7 +8763,7 @@ dependencies = [ "spl-discriminator 0.4.0", "spl-pod 0.5.0", "spl-type-length-value 0.7.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8780,7 +8780,7 @@ dependencies = [ "solana-program-test", "solana-sdk", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", "uint", ] @@ -8847,7 +8847,7 @@ dependencies = [ "spl-discriminator 0.4.0", "spl-pod 0.5.0", "spl-type-length-value 0.7.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8867,7 +8867,7 @@ dependencies = [ "spl-token 7.0.0", "spl-token-2022 6.0.0", "test-case", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8896,7 +8896,7 @@ dependencies = [ "spl-token-2022 6.0.0", "spl-token-client", "test-case", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -8931,7 +8931,7 @@ dependencies = [ "spl-associated-token-account 6.0.0", "spl-token 7.0.0", "spl-token-2022 6.0.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -9063,7 +9063,7 @@ dependencies = [ "spl-program-error 0.6.0", "spl-tlv-account-resolution 0.9.0", "spl-type-length-value 0.7.0", - "thiserror", + "thiserror 2.0.0", "tokio", ] @@ -9094,7 +9094,7 @@ dependencies = [ "spl-discriminator 0.4.0", "spl-pod 0.5.0", "spl-type-length-value-derive", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -9126,7 +9126,7 @@ dependencies = [ "solana-sdk", "spl-associated-token-account-client", "spl-token 7.0.0", - "thiserror", + "thiserror 2.0.0", ] [[package]] @@ -9282,7 +9282,7 @@ dependencies = [ "bitflags 1.3.2", "byteorder", "libc", - "thiserror", + "thiserror 1.0.68", "walkdir", ] @@ -9334,7 +9334,7 @@ dependencies = [ "serde", "static_assertions", "tarpc-plugins", - "thiserror", + "thiserror 1.0.68", "tokio", "tokio-serde", "tokio-util 0.6.9", @@ -9456,7 +9456,16 @@ version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "02dd99dc800bbb97186339685293e1cc5d9df1f8fae2d0aecd9ff1c77efea892" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.68", +] + +[[package]] +name = "thiserror" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15291287e9bff1bc6f9ff3409ed9af665bec7a5fc8ac079ea96be07bca0e2668" +dependencies = [ + "thiserror-impl 2.0.0", ] [[package]] @@ -9470,6 +9479,17 @@ dependencies = [ "syn 2.0.87", ] +[[package]] +name = "thiserror-impl" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22efd00f33f93fa62848a7cab956c3d38c8d43095efda1decfc2b3a5dc0b8972" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "thread_local" version = "1.1.4" @@ -9523,7 +9543,7 @@ dependencies = [ "rand 0.7.3", "rustc-hash 1.1.0", "sha2 0.9.9", - "thiserror", + "thiserror 1.0.68", "unicode-normalization", "wasm-bindgen", "zeroize", @@ -9861,7 +9881,7 @@ dependencies = [ "rand 0.8.5", "rustls 0.21.12", "sha1", - "thiserror", + "thiserror 1.0.68", "url 2.5.2", "utf-8", "webpki-roots 0.24.0", @@ -10439,7 +10459,7 @@ dependencies = [ "nom", "oid-registry", "rusticata-macros", - "thiserror", + "thiserror 1.0.68", "time", ] diff --git a/associated-token-account/program/Cargo.toml b/associated-token-account/program/Cargo.toml index c596eb926eb..69b43889e87 100644 --- a/associated-token-account/program/Cargo.toml +++ b/associated-token-account/program/Cargo.toml @@ -23,7 +23,7 @@ spl-token = { version = "7.0", path = "../../token/program", features = [ spl-token-2022 = { version = "6.0.0", path = "../../token/program-2022", features = [ "no-entrypoint", ] } -thiserror = "1.0" +thiserror = "2.0" [lib] crate-type = ["cdylib", "lib"] diff --git a/binary-option/program/Cargo.toml b/binary-option/program/Cargo.toml index 0d553f24230..c6f6ef91150 100644 --- a/binary-option/program/Cargo.toml +++ b/binary-option/program/Cargo.toml @@ -10,7 +10,7 @@ test-sbf = [] [dependencies] solana-program = "2.1.0" -thiserror = "1.0" +thiserror = "2.0" spl-token = { version = "7.0", path = "../../token/program", features = [ "no-entrypoint", ] } diff --git a/binary-oracle-pair/program/Cargo.toml b/binary-oracle-pair/program/Cargo.toml index 07e24f4a078..2d2d3cf2590 100644 --- a/binary-oracle-pair/program/Cargo.toml +++ b/binary-oracle-pair/program/Cargo.toml @@ -17,7 +17,7 @@ solana-program = "2.1.0" spl-token = { version = "7.0", path = "../../token/program", features = [ "no-entrypoint", ] } -thiserror = "1.0" +thiserror = "2.0" uint = "0.10" borsh = "1.5.1" diff --git a/governance/addin-mock/program/Cargo.toml b/governance/addin-mock/program/Cargo.toml index 5f66381840a..d5cbc82a474 100644 --- a/governance/addin-mock/program/Cargo.toml +++ b/governance/addin-mock/program/Cargo.toml @@ -25,7 +25,7 @@ spl-token = { version = "7.0", path = "../../../token/program", features = [ ] } spl-governance-addin-api = { version = "0.1.4", path = "../../addin-api" } spl-governance-tools = { version = "0.1.4", path = "../../tools" } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] diff --git a/governance/chat/program/Cargo.toml b/governance/chat/program/Cargo.toml index 4610d5d8e91..b5ceb137a15 100644 --- a/governance/chat/program/Cargo.toml +++ b/governance/chat/program/Cargo.toml @@ -28,7 +28,7 @@ spl-governance = { version = "4.0.0", path = "../../program", features = [ ] } spl-governance-tools = { version = "0.1.4", path = "../../tools" } spl-governance-addin-api = { version = "0.1.4", path = "../../addin-api" } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] diff --git a/governance/program/Cargo.toml b/governance/program/Cargo.toml index 78ec4e0f850..2f132cdd1c8 100644 --- a/governance/program/Cargo.toml +++ b/governance/program/Cargo.toml @@ -25,7 +25,7 @@ spl-token = { version = "7.0", path = "../../token/program", features = [ ] } spl-governance-tools = { version = "0.1.4", path = "../tools" } spl-governance-addin-api = { version = "0.1.4", path = "../addin-api" } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] assert_matches = "1.5.0" diff --git a/governance/test-sdk/Cargo.toml b/governance/test-sdk/Cargo.toml index 8839461b5ea..6cd7c2613ee 100644 --- a/governance/test-sdk/Cargo.toml +++ b/governance/test-sdk/Cargo.toml @@ -22,4 +22,4 @@ solana-sdk = "2.1.0" spl-token = { version = "7.0", path = "../../token/program", features = [ "no-entrypoint", ] } -thiserror = "1.0" +thiserror = "2.0" diff --git a/governance/tools/Cargo.toml b/governance/tools/Cargo.toml index da592dc1174..762b873be36 100644 --- a/governance/tools/Cargo.toml +++ b/governance/tools/Cargo.toml @@ -19,4 +19,4 @@ solana-program = "2.1.0" spl-token = { version = "7.0", path = "../../token/program", features = [ "no-entrypoint", ] } -thiserror = "1.0" +thiserror = "2.0" diff --git a/libraries/concurrent-merkle-tree/Cargo.toml b/libraries/concurrent-merkle-tree/Cargo.toml index ac842c356d5..bf903ea4396 100644 --- a/libraries/concurrent-merkle-tree/Cargo.toml +++ b/libraries/concurrent-merkle-tree/Cargo.toml @@ -14,7 +14,7 @@ sol-log = ["log"] [dependencies] solana-program = ">=1.18.11,<=2" bytemuck = "1.19" -thiserror = "1.0.68" +thiserror = "2.0.0" [dev-dependencies] rand_distr = "0.4.3" diff --git a/libraries/math-example/Cargo.toml b/libraries/math-example/Cargo.toml index 2bf3618c64d..01818290967 100644 --- a/libraries/math-example/Cargo.toml +++ b/libraries/math-example/Cargo.toml @@ -17,7 +17,7 @@ num-derive = "0.4" num-traits = "0.2" solana-program = "2.1.0" spl-math = { path = "../math", version = "0.3.0" } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] solana-program-test = "2.1.0" diff --git a/libraries/merkle-tree-reference/Cargo.toml b/libraries/merkle-tree-reference/Cargo.toml index bbde1c59ef3..f33df0ed86b 100644 --- a/libraries/merkle-tree-reference/Cargo.toml +++ b/libraries/merkle-tree-reference/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" [dependencies] solana-program = ">=1.18.11,<=2" -thiserror = "1.0.68" +thiserror = "2.0.0" [lib] crate-type = ["cdylib", "lib"] diff --git a/libraries/pod/Cargo.toml b/libraries/pod/Cargo.toml index 906ac0c8d6b..e019949daea 100644 --- a/libraries/pod/Cargo.toml +++ b/libraries/pod/Cargo.toml @@ -24,7 +24,7 @@ solana-program-error = "2.1.0" solana-program-option = "2.1.0" solana-pubkey = "2.1.0" solana-zk-sdk = "2.1.0" -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] serde_json = "1.0.132" diff --git a/libraries/program-error/Cargo.toml b/libraries/program-error/Cargo.toml index 2409f07c7c1..3e5bb485c13 100644 --- a/libraries/program-error/Cargo.toml +++ b/libraries/program-error/Cargo.toml @@ -12,7 +12,7 @@ num-derive = "0.4" num-traits = "0.2" solana-program = "2.1.0" spl-program-error-derive = { version = "0.4.1", path = "./derive" } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] lazy_static = "1.5" diff --git a/libraries/tlv-account-resolution/Cargo.toml b/libraries/tlv-account-resolution/Cargo.toml index 067627ae098..c159127fecb 100644 --- a/libraries/tlv-account-resolution/Cargo.toml +++ b/libraries/tlv-account-resolution/Cargo.toml @@ -26,7 +26,7 @@ spl-discriminator = { version = "0.4.0", path = "../discriminator" } spl-program-error = { version = "0.6.0", path = "../program-error" } spl-pod = { version = "0.5.0", path = "../pod" } spl-type-length-value = { version = "0.7.0", path = "../type-length-value" } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] futures = "0.3.31" diff --git a/libraries/type-length-value/Cargo.toml b/libraries/type-length-value/Cargo.toml index 62ba813a334..5b2d658d8a1 100644 --- a/libraries/type-length-value/Cargo.toml +++ b/libraries/type-length-value/Cargo.toml @@ -22,7 +22,7 @@ solana-program-error = "2.1.0" spl-discriminator = { version = "0.4.0", path = "../discriminator" } spl-type-length-value-derive = { version = "0.1", path = "./derive", optional = true } spl-pod = { version = "0.5.0", path = "../pod" } -thiserror = "1.0" +thiserror = "2.0" [lib] crate-type = ["cdylib", "lib"] diff --git a/managed-token/program/Cargo.toml b/managed-token/program/Cargo.toml index d20e264e667..5176024a7af 100644 --- a/managed-token/program/Cargo.toml +++ b/managed-token/program/Cargo.toml @@ -32,7 +32,7 @@ spl-associated-token-account-client = { version = "2.0.0", path = "../../associa spl-token = { version = "7.0", path = "../../token/program", features = [ "no-entrypoint", ] } -thiserror = "^1.0.68" +thiserror = "^2.0.0" [dev-dependencies] solana-program-test = "2.1.0" diff --git a/name-service/program/Cargo.toml b/name-service/program/Cargo.toml index 02fce132742..a0cba30511a 100644 --- a/name-service/program/Cargo.toml +++ b/name-service/program/Cargo.toml @@ -21,7 +21,7 @@ solana-program = "2.1.0" num-traits = "0.2" borsh = "1.5.1" num-derive = "0.4.2" -thiserror = "1.0.68" +thiserror = "2.0.0" [dev-dependencies] solana-program-test = "2.1.0" diff --git a/record/program/Cargo.toml b/record/program/Cargo.toml index fd6bcdecc1a..adde60fdc05 100644 --- a/record/program/Cargo.toml +++ b/record/program/Cargo.toml @@ -24,7 +24,7 @@ solana-program-error = "2.1.0" solana-program-pack = "2.1.0" solana-pubkey = { version = "2.1.0", features = ["bytemuck"] } solana-rent = "2.1.0" -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] solana-program-test = "2.1.0" diff --git a/single-pool/program/Cargo.toml b/single-pool/program/Cargo.toml index b14d789a72e..083100bbe2e 100644 --- a/single-pool/program/Cargo.toml +++ b/single-pool/program/Cargo.toml @@ -22,7 +22,7 @@ solana-security-txt = "1.1.1" spl-token = { version = "7.0", path = "../../token/program", features = [ "no-entrypoint", ] } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] solana-program-test = "2.1.0" diff --git a/stake-pool/program/Cargo.toml b/stake-pool/program/Cargo.toml index bebff5656fa..3932014c964 100644 --- a/stake-pool/program/Cargo.toml +++ b/stake-pool/program/Cargo.toml @@ -28,7 +28,7 @@ spl-pod = { version = "0.5.0", path = "../../libraries/pod", features = [ spl-token-2022 = { version = "6.0.0", path = "../../token/program-2022", features = [ "no-entrypoint", ] } -thiserror = "1.0" +thiserror = "2.0" bincode = "1.3.1" [dev-dependencies] diff --git a/stateless-asks/program/Cargo.toml b/stateless-asks/program/Cargo.toml index 97ec2b911dd..43159a41d85 100644 --- a/stateless-asks/program/Cargo.toml +++ b/stateless-asks/program/Cargo.toml @@ -17,7 +17,7 @@ spl-token = { version = "7.0", path = "../../token/program", features = [ "no-entrypoint", ] } spl-associated-token-account-client = { version = "2.0.0", path = "../../associated-token-account/client" } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] solana-program-test = "2.1.0" diff --git a/token-group/interface/Cargo.toml b/token-group/interface/Cargo.toml index 5f107dd4099..96ae3a136c5 100644 --- a/token-group/interface/Cargo.toml +++ b/token-group/interface/Cargo.toml @@ -18,7 +18,7 @@ solana-program-error = "2.1.0" solana-pubkey = "2.1.0" spl-discriminator = { version = "0.4.0", path = "../../libraries/discriminator" } spl-pod = { version = "0.5.0", path = "../../libraries/pod", features = ["borsh"] } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] solana-sha256-hasher = "2.1.0" diff --git a/token-lending/program/Cargo.toml b/token-lending/program/Cargo.toml index 28045316513..d9e589dcf3f 100644 --- a/token-lending/program/Cargo.toml +++ b/token-lending/program/Cargo.toml @@ -18,7 +18,7 @@ num-derive = "0.4" num-traits = "0.2" solana-program = "2.1.0" spl-token = { version = "7.0", path = "../../token/program", features = [ "no-entrypoint" ] } -thiserror = "1.0" +thiserror = "2.0" uint = "0.10" [dev-dependencies] diff --git a/token-metadata/interface/Cargo.toml b/token-metadata/interface/Cargo.toml index 5b99a1fb890..b079e104cbe 100644 --- a/token-metadata/interface/Cargo.toml +++ b/token-metadata/interface/Cargo.toml @@ -26,7 +26,7 @@ spl-type-length-value = { version = "0.7.0", path = "../../libraries/type-length spl-pod = { version = "0.5.0", path = "../../libraries/pod", features = [ "borsh", ] } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] serde_json = "1.0.132" diff --git a/token-swap/program/Cargo.toml b/token-swap/program/Cargo.toml index b3580086e3b..21358490b1b 100644 --- a/token-swap/program/Cargo.toml +++ b/token-swap/program/Cargo.toml @@ -21,7 +21,7 @@ solana-program = "2.1.0" spl-math = { version = "0.3", path = "../../libraries/math" } spl-token = { version = "7.0", path = "../../token/program", features = [ "no-entrypoint" ] } spl-token-2022 = { version = "6.0.0", path = "../../token/program-2022", features = [ "no-entrypoint" ] } -thiserror = "1.0" +thiserror = "2.0" arbitrary = { version = "1.4", features = ["derive"], optional = true } roots = { version = "0.0.8", optional = true } diff --git a/token-upgrade/program/Cargo.toml b/token-upgrade/program/Cargo.toml index e1692fc2eae..939175faa1f 100644 --- a/token-upgrade/program/Cargo.toml +++ b/token-upgrade/program/Cargo.toml @@ -17,7 +17,7 @@ num-traits = "0.2" num_enum = "0.7.3" solana-program = "2.1.0" spl-token-2022 = { version = "6.0.0", path = "../../token/program-2022", features = ["no-entrypoint"] } -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] solana-program-test = "2.1.0" diff --git a/token-wrap/program/Cargo.toml b/token-wrap/program/Cargo.toml index 4891f797f67..abe82957acc 100644 --- a/token-wrap/program/Cargo.toml +++ b/token-wrap/program/Cargo.toml @@ -18,7 +18,7 @@ solana-program = "2.1.0" spl-associated-token-account = { version = "6.0.0", path = "../../associated-token-account/program", features = ["no-entrypoint"] } spl-token = { version = "7.0", path = "../../token/program", features = ["no-entrypoint"] } spl-token-2022 = { version = "6.0.0", path = "../../token/program-2022", features = ["no-entrypoint"] } -thiserror = "1.0" +thiserror = "2.0" [lib] crate-type = ["cdylib", "lib"] diff --git a/token/client/Cargo.toml b/token/client/Cargo.toml index 531e1d8e4ac..375e6b0b147 100644 --- a/token/client/Cargo.toml +++ b/token/client/Cargo.toml @@ -34,7 +34,7 @@ spl-token-2022 = { version = "6.0.0", path = "../program-2022" } spl-token-group-interface = { version = "0.5.0", path = "../../token-group/interface" } spl-token-metadata-interface = { version = "0.6.0", path = "../../token-metadata/interface" } spl-transfer-hook-interface = { version = "0.9.0", path = "../transfer-hook/interface" } -thiserror = "1.0" +thiserror = "2.0" [features] default = ["display"] diff --git a/token/confidential-transfer/proof-extraction/Cargo.toml b/token/confidential-transfer/proof-extraction/Cargo.toml index bcf9e226a81..13589739eda 100644 --- a/token/confidential-transfer/proof-extraction/Cargo.toml +++ b/token/confidential-transfer/proof-extraction/Cargo.toml @@ -13,7 +13,7 @@ solana-curve25519 = "2.1.0" solana-program = "2.1.0" solana-zk-sdk = "2.1.0" spl-pod = { version = "0.5.0", path = "../../../libraries/pod" } -thiserror = "1.0.68" +thiserror = "2.0.0" [lib] crate-type = ["cdylib", "lib"] diff --git a/token/confidential-transfer/proof-generation/Cargo.toml b/token/confidential-transfer/proof-generation/Cargo.toml index 7543d050036..861e19d9241 100644 --- a/token/confidential-transfer/proof-generation/Cargo.toml +++ b/token/confidential-transfer/proof-generation/Cargo.toml @@ -10,7 +10,7 @@ edition = "2021" [dependencies] curve25519-dalek = "4.1.3" solana-zk-sdk = "2.1.0" -thiserror = "1.0.68" +thiserror = "2.0.0" [dev-dependencies] diff --git a/token/confidential-transfer/proof-tests/Cargo.toml b/token/confidential-transfer/proof-tests/Cargo.toml index c51bf13374e..db6e5c292c3 100644 --- a/token/confidential-transfer/proof-tests/Cargo.toml +++ b/token/confidential-transfer/proof-tests/Cargo.toml @@ -10,6 +10,6 @@ edition = "2021" [dev-dependencies] curve25519-dalek = "4.1.3" solana-zk-sdk = "2.1.0" -thiserror = "1.0.68" +thiserror = "2.0.0" spl-token-confidential-transfer-proof-extraction = { version = "0.2.0", path = "../proof-extraction" } spl-token-confidential-transfer-proof-generation = { version = "0.2.0", path = "../proof-generation" } diff --git a/token/program-2022/Cargo.toml b/token/program-2022/Cargo.toml index 9926450a881..dab8df2b28e 100644 --- a/token/program-2022/Cargo.toml +++ b/token/program-2022/Cargo.toml @@ -35,7 +35,7 @@ spl-token-metadata-interface = { version = "0.6.0", path = "../../token-metadata spl-transfer-hook-interface = { version = "0.9.0", path = "../transfer-hook/interface" } spl-type-length-value = { version = "0.7.0", path = "../../libraries/type-length-value" } spl-pod = { version = "0.5.0", path = "../../libraries/pod" } -thiserror = "1.0" +thiserror = "2.0" serde = { version = "1.0.214", optional = true } serde_with = { version = "3.11.0", optional = true } base64 = { version = "0.22.1", optional = true } diff --git a/token/program/Cargo.toml b/token/program/Cargo.toml index c4240440fb8..c336eda30a3 100644 --- a/token/program/Cargo.toml +++ b/token/program/Cargo.toml @@ -19,7 +19,7 @@ num-derive = "0.4" num-traits = "0.2" num_enum = "0.7.3" solana-program = "2.1.0" -thiserror = "1.0" +thiserror = "2.0" [dev-dependencies] lazy_static = "1.5.0" diff --git a/token/transfer-hook/interface/Cargo.toml b/token/transfer-hook/interface/Cargo.toml index d8a5ca610ec..d68c9d66025 100644 --- a/token/transfer-hook/interface/Cargo.toml +++ b/token/transfer-hook/interface/Cargo.toml @@ -24,7 +24,7 @@ spl-program-error = { version = "0.6.0", path = "../../../libraries/program-erro spl-tlv-account-resolution = { version = "0.9.0", path = "../../../libraries/tlv-account-resolution" } spl-type-length-value = { version = "0.7.0", path = "../../../libraries/type-length-value" } spl-pod = { version = "0.5.0", path = "../../../libraries/pod" } -thiserror = "1.0" +thiserror = "2.0" [lib] crate-type = ["cdylib", "lib"]