Skip to content

Commit 87c82dc

Browse files
tdelabrokariy
authored andcommitted
build(vm): remove thiserror form deps (lambdaclass#1279)
1 parent ced530a commit 87c82dc

15 files changed

+4
-36
lines changed

CHANGELOG.md

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

33
#### Upcoming Changes
44

5+
* build: remove dependecy to `thiserror` (use `thiserror-no-std/std` instead)
6+
57
* chore: use LambdaWorks' implementation of bit operations for `Felt252` [#1291](https://github.com/lambdaclass/cairo-rs/pull/1291)
68

79
#### [0.8.0] - 2023-6-26
@@ -24,6 +26,7 @@
2426

2527
* build: remove unused implicit features from cairo-vm [#1266](https://github.com/lambdaclass/cairo-rs/pull/1266)
2628

29+
2730
#### [0.6.1] - 2023-6-23
2831

2932
* fix: updated the `custom_hint_example` and added it to the workspace [#1258](https://github.com/lambdaclass/cairo-rs/pull/1258)

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ generic-array = { version = "0.14.6", default-features = false }
4343
keccak = { version = "0.1.2", default-features = false }
4444
hashbrown = { version = "0.13.2", features = ["serde"] }
4545
anyhow = { version = "1.0.69", default-features = false }
46-
thiserror = { version = "1.0.32", default-features = false }
4746
thiserror-no-std = { version = "2.0.2", default-features = false }
4847

4948
felt = { package = "cairo-felt", path = "./felt", version = "0.8.0", default-features = false, features = [

vm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ std = [
1818
"starknet-crypto/std",
1919
"felt/std",
2020
"dep:num-prime",
21+
"thiserror-no-std/std",
2122
]
2223
cairo-1-hints = ["dep:cairo-lang-starknet", "dep:cairo-lang-casm", "dep:ark-ff", "dep:ark-std"]
2324
lambdaworks-felt = [
@@ -53,7 +54,6 @@ generic-array = { workspace = true }
5354
keccak = { workspace = true }
5455
hashbrown = { workspace = true }
5556
anyhow = { workspace = true }
56-
thiserror = { workspace = true }
5757
thiserror-no-std = { workspace = true }
5858

5959
# only for std

vm/src/cairo_run.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ use crate::{
1212
use bincode::enc::write::Writer;
1313
use felt::Felt252;
1414

15-
#[cfg(feature = "std")]
16-
use thiserror::Error;
17-
#[cfg(not(feature = "std"))]
1815
use thiserror_no_std::Error;
1916

2017
pub struct CairoRunConfig<'a> {

vm/src/types/errors/math_errors.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ use crate::stdlib::boxed::Box;
55
use felt::Felt252;
66
use num_bigint::{BigInt, BigUint};
77

8-
#[cfg(feature = "std")]
9-
use thiserror::Error;
10-
#[cfg(not(feature = "std"))]
118
use thiserror_no_std::Error;
129

1310
use crate::types::relocatable::{MaybeRelocatable, Relocatable};

vm/src/types/errors/program_errors.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
use crate::stdlib::prelude::*;
22

3-
#[cfg(feature = "std")]
4-
use thiserror::Error;
5-
#[cfg(not(feature = "std"))]
63
use thiserror_no_std::Error;
74

85
use felt::PRIME_STR;

vm/src/vm/errors/cairo_run_errors.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#[cfg(feature = "std")]
2-
use thiserror::Error;
3-
#[cfg(not(feature = "std"))]
41
use thiserror_no_std::Error;
52

63
use super::memory_errors::MemoryError;

vm/src/vm/errors/exec_scope_errors.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#[cfg(feature = "std")]
2-
use thiserror::Error;
3-
#[cfg(not(feature = "std"))]
41
use thiserror_no_std::Error;
52

63
#[derive(Eq, Hash, PartialEq, Debug, Error)]

vm/src/vm/errors/hint_errors.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
use crate::stdlib::prelude::*;
55

6-
#[cfg(feature = "std")]
7-
use thiserror::Error;
8-
#[cfg(not(feature = "std"))]
96
use thiserror_no_std::Error;
107

118
use felt::Felt252;

0 commit comments

Comments
 (0)