Skip to content

Commit edb7f31

Browse files
MegaRedHandkariy
authored andcommitted
chore: remove unused dependencies (lambdaclass#1307)
* Remove unused dependencies * Update changelog
1 parent ddb3656 commit edb7f31

File tree

5 files changed

+14
-91
lines changed

5 files changed

+14
-91
lines changed

CHANGELOG.md

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

33
#### Upcoming Changes
44

5+
* chore: remove unused dependencies [#1307](https://github.com/lambdaclass/cairo-vm/pull/1307)
6+
* rand_core
7+
* serde_bytes
8+
* rusty-hook (*dev-dependency*)
9+
510
#### [0.8.1] - 2023-6-29
611

712
* chore: change mentions of *cairo-rs-py* to *cairo-vm-py* [#1296](https://github.com/lambdaclass/cairo-vm/pull/1296)

Cargo.lock

Lines changed: 1 addition & 74 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 & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
[workspace]
2-
members = [
3-
"cairo-vm-cli",
4-
"felt",
5-
"vm",
6-
"hint_accountant",
7-
]
2+
members = ["cairo-vm-cli", "felt", "vm", "hint_accountant"]
83
exclude = ["ensure-no_std"]
94

105
[workspace.package]
@@ -28,9 +23,6 @@ rand = { version = "0.8.3", features = ["small_rng"], default-features = false }
2823
num-traits = { version = "0.2", default-features = false }
2924
num-integer = { version = "0.1.45", default-features = false }
3025
serde = { version = "1.0", features = ["derive"], default-features = false }
31-
serde_bytes = { version = "0.11.9", default-features = false, features = [
32-
"alloc",
33-
] }
3426
serde_json = { version = "1.0", features = [
3527
"arbitrary_precision",
3628
"alloc",
@@ -44,7 +36,6 @@ starknet-crypto = { version = "0.5.0", default-features = false, features = [
4436
"alloc",
4537
] }
4638
sha3 = { version = "0.10.1", default-features = false }
47-
rand_core = { version = "0.6.4", default-features = false }
4839
lazy_static = { version = "1.4.0", default-features = false, features = [
4940
"spin_no_std",
5041
] }

felt/src/lib_bigint_felt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,7 @@ mod test {
14381438

14391439
let p_felt = Felt252::max_value();
14401440

1441+
#[allow(deprecated)]
14411442
let modpow = x.modpow(&y, &p_felt).to_biguint();
14421443
prop_assert!(modpow < p, "{}", modpow);
14431444
}

vm/Cargo.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@ default = ["std", "with_mimalloc"]
1212
with_mimalloc = ["mimalloc"]
1313
std = [
1414
"serde_json/std",
15-
"serde_bytes/std",
1615
"bincode/std",
1716
"anyhow/std",
1817
"starknet-crypto/std",
1918
"felt/std",
2019
"dep:num-prime",
2120
"thiserror-no-std/std",
2221
]
23-
cairo-1-hints = ["dep:cairo-lang-starknet", "dep:cairo-lang-casm", "dep:ark-ff", "dep:ark-std"]
24-
lambdaworks-felt = [
25-
"felt/lambdaworks-felt"
22+
cairo-1-hints = [
23+
"dep:cairo-lang-starknet",
24+
"dep:cairo-lang-casm",
25+
"dep:ark-ff",
26+
"dep:ark-std",
2627
]
28+
lambdaworks-felt = ["felt/lambdaworks-felt"]
2729

2830
# Note that these features are not retro-compatible with the cairo Python VM.
2931
test_utils = [
@@ -40,13 +42,11 @@ rand = { workspace = true }
4042
num-traits = { workspace = true }
4143
num-integer = { workspace = true }
4244
serde = { workspace = true }
43-
serde_bytes = { workspace = true }
4445
serde_json = { workspace = true }
4546
hex = { workspace = true }
4647
bincode = { workspace = true }
4748
starknet-crypto = { workspace = true }
4849
sha3 = { workspace = true }
49-
rand_core = { workspace = true }
5050
lazy_static = { workspace = true }
5151
nom = { workspace = true }
5252
sha2 = { workspace = true }
@@ -79,7 +79,6 @@ wasm-bindgen-test = "0.3.34"
7979

8080
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
8181
iai-callgrind = "0.3.1"
82-
rusty-hook = "0.11"
8382
criterion = { version = "0.3", features = ["html_reports"] }
8483
proptest = "1.0.0"
8584

0 commit comments

Comments
 (0)