Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Sep 6, 2024
1 parent 07224e1 commit 97b1c1c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ jobs:
run: cargo clippy --all-targets -- -D warnings -A incomplete-features

- name: Run cargo clippy (with `cdk_erigon` flag)
run: cargo clippy --all-features --all-targets --features cdk_erigon -- -D warnings -A incomplete-features
run: cargo clippy --all-targets --no-default-features --features cdk_erigon -- -D warnings -A incomplete-features

- name: Rustdoc
run: cargo doc --all
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ vergen = { version = "9.0.0", features = ["build", "rustc"] }
winnow = "0.6.13"

# local dependencies
evm_arithmetization = { path = "evm_arithmetization", version = "0.4.0" }
evm_arithmetization = { path = "evm_arithmetization", version = "0.4.0", default-features = false }
mpt_trie = { path = "mpt_trie", version = "0.4.1" }
proof_gen = { path = "proof_gen", version = "0.4.0" }
smt_trie = { path = "smt_trie", version = "0.1.1" }
Expand Down
5 changes: 4 additions & 1 deletion evm_arithmetization/src/cpu/kernel/aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ pub const NUMBER_KERNEL_FILES: usize = if cfg!(feature = "eth_mainnet") {
157
} else if cfg!(feature = "cdk_erigon") {
156
} else {
} else if cfg!(feature = "polygon_pos") {
155
} else {
// unreachable
0
};

pub static KERNEL_FILES: [&str; NUMBER_KERNEL_FILES] = [
Expand Down
6 changes: 4 additions & 2 deletions proof_gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ hashbrown = { workspace = true }
evm_arithmetization = { workspace = true }

[features]
default = []
cdk_erigon = ["evm_arithmetization/cdk_erigon"]
default = ["evm_arithmetization/eth_mainnet"]
cdk_erigon = [
"evm_arithmetization/cdk_erigon"
]

[lints]
workspace = true
2 changes: 1 addition & 1 deletion zero_bin/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ vergen = { workspace = true }
anyhow = { workspace = true }

[features]
default = []
default = ["evm_arithmetization/eth_mainnet"]
cdk_erigon = [
"evm_arithmetization/cdk_erigon",
"proof_gen/cdk_erigon"
Expand Down
2 changes: 1 addition & 1 deletion zero_bin/leader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ evm_arithmetization = { workspace = true }
zero_bin_common = { workspace = true }

[features]
default = []
default = ["evm_arithmetization/eth_mainnet"]
cdk_erigon = [
"evm_arithmetization/cdk_erigon",
"proof_gen/cdk_erigon",
Expand Down
6 changes: 4 additions & 2 deletions zero_bin/prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ tracing = { workspace = true }
zero_bin_common = { workspace = true }

[features]
default = []
cdk_erigon = []
default = ["evm_arithmetization/eth_mainnet"]
cdk_erigon = [
"evm_arithmetization/cdk_erigon",
]

[lints]
workspace = true
5 changes: 4 additions & 1 deletion zero_bin/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ vergen = { workspace = true }
anyhow = { workspace = true }

[features]
cdk_erigon = []
default = ["evm_arithmetization/eth_mainnet"]
cdk_erigon = [
"evm_arithmetization/cdk_erigon",
]

0 comments on commit 97b1c1c

Please sign in to comment.