Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit e80c5af

Browse files
KimiWu123adria0
andauthored
fix/update dependencies versions (#1722)
### Description Had following built error on my Mac (MacOS 12.6.7, M1 Pro) ``` error[E0658]: use of unstable library feature 'stdsimd' --> /Users/kimi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.8.7/src/operations.rs:124:24 | 124 | let res = unsafe { vaesmcq_u8(vaeseq_u8(transmute!(value), transmute!(0u128))) }; | ^^^^^^^^^^ | = note: see issue #48556 <rust-lang/rust#48556> for more information = help: add `#![feature(stdsimd)]` to the crate attributes to enable ... ``` Had following error if only to downgrade `ahash` to `0.8.6`. ``` error[E0432]: unresolved import `revm_precompile` --> bus-mapping/src/precompile.rs:7:5 | 7 | use revm_precompile::{Precompile, PrecompileError, Precompiles}; | ^^^^^^^^^^^^^^^ use of undeclared crate or module `revm_precompile` | ``` Fixed by upgrade `revm_precompile` to `2.2.0`. After upgrade `revm_precompile` to `2.2.0`, CI complained library `libclang.so` missing. That's bcs `revm_precompile` `2.2.0` having `c-kzg` feature which needs `libclang`. So in this fix, we also disable default feature of `revm-precompile` (`default-features=false`). ### Issue Link N/A ### Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update ### Contents Pinning a fixed version is a better practice so this PR is not only update the versions mentioned above but also using `=` to pin the version. --------- Co-authored-by: adria0.eth <[email protected]>
1 parent c56dca8 commit e80c5af

File tree

8 files changed

+834
-731
lines changed

8 files changed

+834
-731
lines changed

Diff for: Cargo.lock

+819-716
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: bus-mapping/Cargo.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ eth-types = { path = "../eth-types" }
1010
gadgets = { path = "../gadgets" }
1111
mock = { path = "../mock", optional = true }
1212

13-
ethers-core = "2.0.7"
14-
ethers-providers = "2.0.7"
13+
ethers-core = "=2.0.10"
14+
ethers-providers = "=2.0.10"
1515
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_04_20" }
1616
itertools = "0.10"
1717
lazy_static = "1.4"
@@ -20,8 +20,7 @@ serde = {version = "1.0.130", features = ["derive"] }
2020
serde_json = "1.0.66"
2121
strum = "0.24"
2222
strum_macros = "0.24"
23-
24-
revm-precompile = "2.0.2"
23+
revm-precompile = {version = "=2.2.0", default-features=false}
2524

2625
[dev-dependencies]
2726
hex = "0.4.3"

Diff for: eth-types/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ authors = ["The appliedzkp team"]
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
ethers-core = "2.0.7"
10-
ethers-signers = "2.0.7"
9+
ethers-core = "=2.0.10"
10+
ethers-signers = "=2.0.10"
1111
hex = "0.4"
1212
lazy_static = "1.4"
1313
halo2_proofs = { git = "https://github.com/privacy-scaling-explorations/halo2.git", tag = "v2023_04_20" }

Diff for: integration-tests/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ mock_prover = []
4040

4141
[build-dependencies]
4242
env = "0.0.0"
43-
ethers = "2.0.7"
44-
ethers-contract-abigen = "2.0.8"
43+
ethers = "=2.0.10"
44+
ethers-contract-abigen = "=2.0.10"
4545
glob = "0.3.1"
4646
log = "0.4.14"
4747
serde = "1.0.130"

Diff for: light-client-poc/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ rand_chacha = "0.3.1"
2222
rand = "0.8.5"
2323
ark-std = "0.4.0"
2424
env_logger = "0.9"
25+
ahash = "=0.8.6"
2526

2627
[dev-dependencies]
2728
ctor = "0.1.22"

Diff for: mock/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ eth-types = { path = "../eth-types" }
1010
external-tracer = { path = "../external-tracer" }
1111
lazy_static = "1.4"
1212
itertools = "0.10.3"
13-
ethers-signers = "2.0.7"
14-
ethers-core = "2.0.7"
13+
ethers-signers = "=2.0.10"
14+
ethers-core = "=2.0.10"
1515
rand_chacha = "0.3"
1616
rand = "0.8"

Diff for: testool/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ bus-mapping = { path = "../bus-mapping" }
1010
clap = { version = "3.1", features = ["derive"] }
1111
env_logger = "0.9"
1212
eth-types = { path="../eth-types" }
13-
ethers-core = "2.0.7"
14-
ethers-signers = "2.0.7"
13+
ethers-core = "=2.0.10"
14+
ethers-signers = "=2.0.10"
1515
external-tracer = { path="../external-tracer" }
1616
glob = "0.3"
1717
handlebars = "4.3"

Diff for: zkevm-circuits/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ array-init = "2.0.0"
1515
bus-mapping = { path = "../bus-mapping" }
1616
eth-types = { path = "../eth-types" }
1717
gadgets = { path = "../gadgets" }
18-
ethers-core = "2.0.7"
19-
ethers-signers = { version = "2.0.7", optional = true }
18+
ethers-core = "=2.0.10"
19+
ethers-signers = { version = "=2.0.10", optional = true }
2020
mock = { path = "../mock", optional = true }
2121
strum = "0.24"
2222
strum_macros = "0.24"
@@ -44,7 +44,7 @@ hex = {version = "0.4.3", features = ["serde"]}
4444
[dev-dependencies]
4545
bus-mapping = { path = "../bus-mapping", features = ["test"] }
4646
ctor = "0.1.22"
47-
ethers-signers = "2.0.7"
47+
ethers-signers = "=2.0.10"
4848
itertools = "0.10.1"
4949
mock = { path = "../mock" }
5050
pretty_assertions = "1.0.0"

0 commit comments

Comments
 (0)