Skip to content

Commit b66f7c2

Browse files
committed
Replace thiserror-no-std with thiserror 2
1 parent 7a97bed commit b66f7c2

22 files changed

+53
-51
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#### Upcoming Changes
44

5+
* feat: replace `thiserror-no-std` with `thiserror 2` [#1919](https://github.com/lambdaclass/cairo-vm/pull/1919)
6+
57
* feat: implement `Blake2sLastBlock` opcode in VM [#1932](https://github.com/lambdaclass/cairo-vm/pull/1932)
68

79
* feat: implement `Blake2s` opcode in VM [#1927](https://github.com/lambdaclass/cairo-vm/pull/1927)

Cargo.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ generic-array = { version = "0.14.7", default-features = false }
5858
keccak = { version = "0.1.2", default-features = false }
5959
hashbrown = { version = "0.15.2", features = ["serde"] }
6060
anyhow = { version = "1.0.94", default-features = false }
61-
thiserror-no-std = { version = "2.0.2", default-features = false }
61+
thiserror = { version = "2", default-features = false }
6262

6363
bitvec = { version = "1", default-features = false, features = ["alloc"] }
6464

cairo-vm-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cairo-vm-tracer = { workspace = true, optional = true }
1313
clap = { version = "4.3.10", features = ["derive"] }
1414
mimalloc = { version = "0.1.37", default-features = false, optional = true }
1515
nom = "7"
16-
thiserror = { version = "1.0.40" }
16+
thiserror = { workspace = true, features = ["std"]}
1717
bincode.workspace = true
1818

1919
[dev-dependencies]

cairo-vm-tracer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ alloc = []
1313

1414
[dependencies]
1515
cairo-vm = { workspace = true, features = ["test_utils"] }
16-
thiserror-no-std = { workspace = true }
16+
thiserror = { workspace = true, features = ["std"] }
1717
num-bigint = { workspace = true }
1818
num-traits = { workspace = true }
1919
axum = "0.6.18"

cairo-vm-tracer/src/error/trace_data_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use cairo_vm::vm::errors::{memory_errors::MemoryError, vm_errors::VirtualMachineError};
2-
use thiserror_no_std::Error;
2+
use thiserror::Error;
33

44
#[derive(Debug, Error)]
55
pub enum TraceDataError {

cairo1-run/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cairo-lang-utils.workspace = true
2323
cairo-lang-casm.workspace = true
2424
itertools = "0.11.0"
2525
clap = { version = "4.3.10", features = ["derive"] }
26-
thiserror = { version = "1.0.40" }
26+
thiserror = { workspace = true, features = ["std"] }
2727
bincode.workspace = true
2828
assert_matches = "1.5.0"
2929
rstest = "0.17.0"

vm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ std = [
1717
"starknet-types-core/std",
1818
"starknet-crypto/std",
1919
"dep:num-prime",
20-
"thiserror-no-std/std",
20+
"thiserror/std",
2121
"dep:zip",
2222
]
2323
cairo-1-hints = [
@@ -58,7 +58,7 @@ generic-array = { workspace = true }
5858
keccak = { workspace = true }
5959
hashbrown = { workspace = true }
6060
anyhow = { workspace = true }
61-
thiserror-no-std = { workspace = true }
61+
thiserror = { workspace = true }
6262
starknet-types-core = { version = "0.1.2", default-features = false, features = ["serde", "curve", "num-traits", "hash"] }
6363
rust_decimal = { version = "1.35.0", default-features = false }
6464

vm/src/air_public_input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::Felt252;
22
use serde::{Deserialize, Serialize};
3-
use thiserror_no_std::Error;
3+
use thiserror::Error;
44

55
use crate::{
66
stdlib::{

vm/src/cairo_run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::{
1616
use crate::Felt252;
1717
use bincode::enc::write::Writer;
1818

19-
use thiserror_no_std::Error;
19+
use thiserror::Error;
2020

2121
use crate::types::exec_scope::ExecutionScopes;
2222
#[cfg(feature = "test_utils")]

0 commit comments

Comments
 (0)