diff --git a/.cargo/config.toml b/.cargo/config.toml index aeeacca0145..934b5126f60 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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", +] diff --git a/Cargo.toml b/Cargo.toml index 0a00799c305..2e2b999114a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/crates/blockchain/payload.rs b/crates/blockchain/payload.rs index 40d0b3f7213..c3b1d845b00 100644 --- a/crates/blockchain/payload.rs +++ b/crates/blockchain/payload.rs @@ -43,7 +43,7 @@ use crate::{ }; use thiserror::Error; -use tracing::{debug, error, warn}; +use tracing::{debug, warn}; #[derive(Debug)] pub struct PayloadBuildTask { diff --git a/crates/common/crypto/Cargo.toml b/crates/common/crypto/Cargo.toml index 4d81a6d6ac0..c9e9c761904 100644 --- a/crates/common/crypto/Cargo.toml +++ b/crates/common/crypto/Cargo.toml @@ -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 diff --git a/crates/networking/p2p/Cargo.toml b/crates/networking/p2p/Cargo.toml index f321678fff8..6bd308bc3fe 100644 --- a/crates/networking/p2p/Cargo.toml +++ b/crates/networking/p2p/Cargo.toml @@ -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" diff --git a/crates/networking/rpc/Cargo.toml b/crates/networking/rpc/Cargo.toml index ad9729aa08a..aa22f5e3eab 100644 --- a/crates/networking/rpc/Cargo.toml +++ b/crates/networking/rpc/Cargo.toml @@ -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 } @@ -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 diff --git a/crates/vm/levm/Cargo.toml b/crates/vm/levm/Cargo.toml index b2fdf9a43b1..5d92465ef8d 100644 --- a/crates/vm/levm/Cargo.toml +++ b/crates/vm/levm/Cargo.toml @@ -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 @@ -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 }