diff --git a/Cargo.lock b/Cargo.lock index cf91db214..c0ad6f5b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2624,7 +2624,7 @@ dependencies = [ "revm", "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.3", "walkdir", ] @@ -2780,7 +2780,7 @@ dependencies = [ "reth-node-ethereum", "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -2868,7 +2868,7 @@ dependencies = [ "reth-tracing", "reth-trie-db", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", ] @@ -6502,7 +6502,7 @@ dependencies = [ "reth-tokio-util", "reth-tracing", "schnellru", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tracing", @@ -6538,7 +6538,7 @@ dependencies = [ "reth-rpc-types-compat", "reth-tracing", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tower 0.4.13", "tracing", @@ -6592,7 +6592,7 @@ dependencies = [ "reth-execution-errors", "reth-primitives", "reth-storage-errors", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -6748,7 +6748,7 @@ dependencies = [ "reth-fs-util", "secp256k1", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", "tikv-jemallocator", "tracy-client", ] @@ -6893,7 +6893,7 @@ dependencies = [ "sysinfo", "tempfile", "test-fuzz", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -6949,7 +6949,7 @@ dependencies = [ "reth-trie-db", "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.3", "tracing", ] @@ -6991,7 +6991,7 @@ dependencies = [ "schnellru", "secp256k1", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tracing", @@ -7016,7 +7016,7 @@ dependencies = [ "reth-network-peers", "reth-tracing", "secp256k1", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tracing", ] @@ -7042,7 +7042,7 @@ dependencies = [ "secp256k1", "serde", "serde_with", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tracing", @@ -7081,7 +7081,7 @@ dependencies = [ "reth-testing-utils", "reth-tracing", "tempfile", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tokio-util", @@ -7158,7 +7158,7 @@ dependencies = [ "secp256k1", "sha2 0.10.8", "sha3", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tokio-util", @@ -7213,7 +7213,7 @@ dependencies = [ "reth-primitives-traits", "reth-trie", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", ] @@ -7240,7 +7240,7 @@ dependencies = [ "reth-prune", "reth-stages-api", "reth-tasks", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", ] @@ -7295,7 +7295,7 @@ dependencies = [ "reth-trie-parallel", "reth-trie-sparse", "revm-primitives", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tracing", ] @@ -7340,7 +7340,7 @@ dependencies = [ "reth-execution-errors", "reth-fs-util", "reth-storage-errors", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -7373,7 +7373,7 @@ dependencies = [ "serde", "snap", "test-fuzz", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tokio-util", @@ -7401,7 +7401,7 @@ dependencies = [ "reth-primitives", "reth-primitives-traits", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -7467,7 +7467,7 @@ dependencies = [ "proptest-derive", "rustc-hash 2.0.0", "serde", - "thiserror-no-std", + "thiserror 2.0.3", ] [[package]] @@ -7664,7 +7664,7 @@ dependencies = [ "reth-transaction-pool", "reth-trie-db", "tempfile", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", ] @@ -7691,7 +7691,7 @@ version = "1.1.2" dependencies = [ "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -7734,7 +7734,7 @@ dependencies = [ "rand 0.8.5", "reth-tracing", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tokio-util", @@ -7759,7 +7759,7 @@ dependencies = [ "reth-mdbx-sys", "smallvec", "tempfile", - "thiserror 1.0.69", + "thiserror 2.0.3", "tracing", ] @@ -7798,7 +7798,7 @@ dependencies = [ "reqwest", "reth-tracing", "serde_with", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tracing", ] @@ -7858,7 +7858,7 @@ dependencies = [ "serial_test", "smallvec", "tempfile", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tokio-util", @@ -7883,7 +7883,7 @@ dependencies = [ "reth-network-types", "reth-tokio-util", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", ] @@ -7921,7 +7921,7 @@ dependencies = [ "secp256k1", "serde_json", "serde_with", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "url", ] @@ -7952,7 +7952,7 @@ dependencies = [ "reth-fs-util", "serde", "tempfile", - "thiserror 1.0.69", + "thiserror 2.0.3", "tracing", "zstd", ] @@ -8087,7 +8087,7 @@ dependencies = [ "serde", "shellexpand", "strum", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "toml", "tracing", @@ -8414,7 +8414,7 @@ dependencies = [ "reth-trie", "revm", "sha2 0.10.8", - "thiserror 1.0.69", + "thiserror 2.0.3", "tracing", ] @@ -8477,7 +8477,7 @@ dependencies = [ "reth-transaction-pool", "revm", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tracing", ] @@ -8542,7 +8542,7 @@ dependencies = [ "reth-primitives", "revm-primitives", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", ] @@ -8717,7 +8717,7 @@ dependencies = [ "reth-tokio-util", "reth-tracing", "rustc-hash 2.0.0", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tracing", ] @@ -8738,7 +8738,7 @@ dependencies = [ "serde", "serde_json", "test-fuzz", - "thiserror 1.0.69", + "thiserror 2.0.3", "toml", ] @@ -8825,7 +8825,7 @@ dependencies = [ "revm-primitives", "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tower 0.4.13", @@ -8919,7 +8919,7 @@ dependencies = [ "reth-transaction-pool", "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-util", "tower 0.4.13", @@ -8960,7 +8960,7 @@ dependencies = [ "reth-tokio-util", "reth-transaction-pool", "serde", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tracing", ] @@ -9044,7 +9044,7 @@ dependencies = [ "schnellru", "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tracing", @@ -9146,7 +9146,7 @@ dependencies = [ "reth-trie", "reth-trie-db", "tempfile", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tracing", ] @@ -9173,7 +9173,7 @@ dependencies = [ "reth-static-file-types", "reth-testing-utils", "reth-tokio-util", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tracing", @@ -9277,7 +9277,7 @@ dependencies = [ "pin-project", "rayon", "reth-metrics", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tracing", "tracing-futures", @@ -9361,7 +9361,7 @@ dependencies = [ "serde_json", "smallvec", "tempfile", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tokio-stream", "tracing", @@ -9473,7 +9473,7 @@ dependencies = [ "reth-trie", "reth-trie-common", "reth-trie-db", - "thiserror 1.0.69", + "thiserror 2.0.3", "tokio", "tracing", ] @@ -9498,7 +9498,7 @@ dependencies = [ "reth-trie", "reth-trie-common", "smallvec", - "thiserror 1.0.69", + "thiserror 2.0.3", ] [[package]] @@ -10762,26 +10762,6 @@ dependencies = [ "syn 2.0.89", ] -[[package]] -name = "thiserror-impl-no-std" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58e6318948b519ba6dc2b442a6d0b904ebfb8d411a3ad3e07843615a72249758" -dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", -] - -[[package]] -name = "thiserror-no-std" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3ad459d94dd517257cc96add8a43190ee620011bb6e6cdc82dafd97dfafafea" -dependencies = [ - "thiserror-impl-no-std", -] - [[package]] name = "thread_local" version = "1.1.8" diff --git a/Cargo.toml b/Cargo.toml index 113d0661f..da012d258 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -523,8 +523,7 @@ shellexpand = "3.0.0" smallvec = "1" strum = { version = "0.26", default-features = false } syn = "2.0" -thiserror = "1.0" -thiserror-no-std = { version = "2.0.2", default-features = false } +thiserror = { version = "2.0.0", default-features = false } tracing = "0.1.0" tracing-appender = "0.2" url = "2.3" diff --git a/crates/ethereum-forks/Cargo.toml b/crates/ethereum-forks/Cargo.toml index 9f7ce7ee8..60572b459 100644 --- a/crates/ethereum-forks/Cargo.toml +++ b/crates/ethereum-forks/Cargo.toml @@ -23,7 +23,7 @@ crc = "3" # misc serde = { workspace = true, features = ["derive"], optional = true } -thiserror-no-std = { workspace = true, default-features = false } +thiserror.workspace = true dyn-clone.workspace = true rustc-hash = { workspace = true, optional = true } @@ -56,7 +56,7 @@ serde = [ std = [ "alloy-chains/std", "alloy-primitives/std", - "thiserror-no-std/std", + "thiserror/std", "rustc-hash/std", "alloy-consensus/std", "once_cell/std", diff --git a/crates/ethereum-forks/src/forkid.rs b/crates/ethereum-forks/src/forkid.rs index b612f3b0b..ebc9fb106 100644 --- a/crates/ethereum-forks/src/forkid.rs +++ b/crates/ethereum-forks/src/forkid.rs @@ -176,7 +176,7 @@ impl From for ForkId { } /// Reason for rejecting provided `ForkId`. -#[derive(Clone, Copy, Debug, thiserror_no_std::Error, PartialEq, Eq, Hash)] +#[derive(Clone, Copy, Debug, thiserror::Error, PartialEq, Eq, Hash)] pub enum ValidationError { /// Remote node is outdated and needs a software update. #[error( diff --git a/crates/storage/nippy-jar/Cargo.toml b/crates/storage/nippy-jar/Cargo.toml index 9f212bf44..56f140afb 100644 --- a/crates/storage/nippy-jar/Cargo.toml +++ b/crates/storage/nippy-jar/Cargo.toml @@ -34,7 +34,6 @@ derive_more.workspace = true rand = { workspace = true, features = ["small_rng"] } tempfile.workspace = true - [features] default = [] test-utils = [] diff --git a/crates/storage/nippy-jar/src/error.rs b/crates/storage/nippy-jar/src/error.rs index f69bb44a0..385e39357 100644 --- a/crates/storage/nippy-jar/src/error.rs +++ b/crates/storage/nippy-jar/src/error.rs @@ -90,6 +90,6 @@ pub enum NippyJarError { InconsistentState, /// A specified file is missing. - #[error("Missing file: {0}.")] + #[error("Missing file: {}", .0.display())] MissingFile(PathBuf), }