Skip to content
5 changes: 4 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[target.x86_64-unknown-linux-gnu]
rustflags = ["-Ctarget-cpu=x86-64-v2"]
rustflags = [
"-Ctarget-cpu=x86-64-v3",
"-Ctarget-feature=+avx2,+sse2,+ssse3,+sse4.1,+sse4.2,+bmi1,+lzcnt,+pclmulqdq",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The target-feature should already be enabled for the x86-64-v3 target CPU.
Are they explicitly there for any reason in particular?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because we found some crates are checking for the specific feature not included when we set target-cpu

]
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ hex-literal = "0.4.1"
crc32fast = "1.4.2"
lazy_static = "1.5.0"
sha2 = "0.10.8"
sha3 = "0.10.8"
sha3 = { version = "0.10.8", features = ["asm"] }
tokio-util = { version = "0.7.15", features = ["rt"] }
jsonwebtoken = "9.3.0"
rand = "0.8.5"
Expand Down
2 changes: 1 addition & 1 deletion crates/blockchain/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use crate::{
};

use thiserror::Error;
use tracing::{debug, error, warn};
use tracing::{debug, warn};

#[derive(Debug)]
pub struct PayloadBuildTask {
Expand Down
5 changes: 4 additions & 1 deletion crates/common/crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ path = "./lib.rs"

[dependencies]
# TODO(#1102): Move to Lambdaworks in the future
c-kzg = { version = "2.1.1", optional = true }
c-kzg = { version = "2.1.1", default-features = false, optional = true, features = [
"ethereum_kzg_settings",
"std",
] }
kzg-rs.workspace = true

thiserror.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/networking/p2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ rocksdb = { workspace = true, optional = true }
prometheus = "0.14.0"

tokio-stream = "0.1.17"
sha3 = "0.10.8"
sha3.workspace = true

serde_json = "1.0.117"

Expand Down
9 changes: 6 additions & 3 deletions crates/networking/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ethrex-common.workspace = true
ethrex-storage.workspace = true
ethrex-vm.workspace = true
ethrex-blockchain.workspace = true
ethrex-p2p = {workspace = true, features = ["test-utils"]}
ethrex-p2p = { workspace = true, features = ["test-utils"] }
ethrex-rlp.workspace = true
ethrex-trie.workspace = true
ethrex-storage-rollup = { workspace = true, optional = true }
Expand All @@ -32,9 +32,12 @@ jsonwebtoken.workspace = true
rand.workspace = true
tokio-util = { workspace = true, features = ["codec"] }
reqwest.workspace = true
sha3 = "0.10.8"
sha3.workspace = true
sha2.workspace = true
jemalloc_pprof = { version = "0.8.0", optional = true, features = ["flamegraph", "symbolize"] }
jemalloc_pprof = { version = "0.8.0", optional = true, features = [
"flamegraph",
"symbolize",
] }
spawned-rt.workspace = true
spawned-concurrency.workspace = true

Expand Down
4 changes: 2 additions & 2 deletions crates/vm/levm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ thiserror.workspace = true
serde = { workspace = true, features = ["derive", "rc"] }
serde_json.workspace = true

sha3 = "0.10.8"
sha3.workspace = true
datatest-stable = "0.2.9"
walkdir = "2.5.0"
secp256k1.workspace = true
Expand All @@ -39,7 +39,7 @@ bls12_381 = { git = "https://github.com/lambdaclass/bls12_381", branch = "expose
] }
ark-bn254 = "0.5.0"
ark-ec = "0.5.0"
ark-ff = "0.5.0"
ark-ff = { version = "0.5.0", features = ["asm"] }
strum = { version = "0.27.1", features = ["derive"] }
k256 = "0.13.4"
substrate-bn = { version = "0.6.0", optional = true }
Expand Down
Loading