Skip to content

Commit

Permalink
Apply Marko's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Sep 11, 2024
1 parent 010c53a commit e565030
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 37 deletions.
9 changes: 5 additions & 4 deletions evm_arithmetization/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,15 @@
#![allow(clippy::field_reassign_with_default)]
#![feature(let_chains)]

#[cfg_attr(
not(any(feature = "polygon_pos", feature = "cdk_erigon")),
cfg(feature = "eth_mainnet")
)]
#[cfg(any(
all(feature = "cdk_erigon", feature = "polygon_pos"),
all(feature = "cdk_erigon", feature = "eth_mainnet"),
all(feature = "polygon_pos", feature = "eth_mainnet"),
not(any(
feature = "cdk_erigon",
feature = "eth_mainnet",
feature = "polygon_pos"
))
))]
compile_error!("Only a single network feature should be enabled at a time!");

Expand Down
9 changes: 5 additions & 4 deletions proof_gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,15 @@
//! assert!(verifier_state.verify(block_proof.intern).is_ok());
//! ```
#[cfg_attr(
not(any(feature = "polygon_pos", feature = "cdk_erigon")),
cfg(feature = "eth_mainnet")
)]
#[cfg(any(
all(feature = "cdk_erigon", feature = "polygon_pos"),
all(feature = "cdk_erigon", feature = "eth_mainnet"),
all(feature = "polygon_pos", feature = "eth_mainnet"),
not(any(
feature = "cdk_erigon",
feature = "eth_mainnet",
feature = "polygon_pos"
))
))]
compile_error!("Only a single network feature should be enabled at a time!");

Expand Down
1 change: 0 additions & 1 deletion trace_decoder/src/decoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ pub fn into_txn_proof_gen_ir(
}

/// Includes additional state and storage updates for pre-block execution.
#[allow(unused)]
fn pre_block_execution(
trie_state: &mut PartialTrieState<impl StateTrie>,
delta_out: &mut TrieDeltaApplicationOutput,
Expand Down
9 changes: 5 additions & 4 deletions trace_decoder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@
#![warn(missing_debug_implementations)]
#![warn(missing_docs)]

#[cfg_attr(
not(any(feature = "polygon_pos", feature = "cdk_erigon")),
cfg(feature = "eth_mainnet")
)]
#[cfg(any(
all(feature = "cdk_erigon", feature = "polygon_pos"),
all(feature = "cdk_erigon", feature = "eth_mainnet"),
all(feature = "polygon_pos", feature = "eth_mainnet"),
not(any(
feature = "cdk_erigon",
feature = "eth_mainnet",
feature = "polygon_pos"
))
))]
compile_error!("Only a single network feature should be enabled at a time!");

Expand Down
9 changes: 5 additions & 4 deletions zero_bin/common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#[cfg_attr(
not(any(feature = "polygon_pos", feature = "cdk_erigon")),
cfg(feature = "eth_mainnet")
)]
#[cfg(any(
all(feature = "cdk_erigon", feature = "polygon_pos"),
all(feature = "cdk_erigon", feature = "eth_mainnet"),
all(feature = "polygon_pos", feature = "eth_mainnet"),
not(any(
feature = "cdk_erigon",
feature = "eth_mainnet",
feature = "polygon_pos"
))
))]
compile_error!("Only a single network feature should be enabled at a time!");
pub mod block_interval;
Expand Down
9 changes: 5 additions & 4 deletions zero_bin/leader/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#[cfg_attr(
not(any(feature = "polygon_pos", feature = "cdk_erigon")),
cfg(feature = "eth_mainnet")
)]
#[cfg(any(
all(feature = "cdk_erigon", feature = "polygon_pos"),
all(feature = "cdk_erigon", feature = "eth_mainnet"),
all(feature = "polygon_pos", feature = "eth_mainnet"),
not(any(
feature = "cdk_erigon",
feature = "eth_mainnet",
feature = "polygon_pos"
))
))]
compile_error!("Only a single network feature should be enabled at a time!");

Expand Down
9 changes: 5 additions & 4 deletions zero_bin/ops/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#[cfg_attr(
not(any(feature = "polygon_pos", feature = "cdk_erigon")),
cfg(feature = "eth_mainnet")
)]
#[cfg(any(
all(feature = "cdk_erigon", feature = "polygon_pos"),
all(feature = "cdk_erigon", feature = "eth_mainnet"),
all(feature = "polygon_pos", feature = "eth_mainnet"),
not(any(
feature = "cdk_erigon",
feature = "eth_mainnet",
feature = "polygon_pos"
))
))]
compile_error!("Only a single network feature should be enabled at a time!");

Expand Down
9 changes: 5 additions & 4 deletions zero_bin/prover/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#[cfg_attr(
not(any(feature = "polygon_pos", feature = "cdk_erigon")),
cfg(feature = "eth_mainnet")
)]
#[cfg(any(
all(feature = "cdk_erigon", feature = "polygon_pos"),
all(feature = "cdk_erigon", feature = "eth_mainnet"),
all(feature = "polygon_pos", feature = "eth_mainnet"),
not(any(
feature = "cdk_erigon",
feature = "eth_mainnet",
feature = "polygon_pos"
))
))]
compile_error!("Only a single network feature should be enabled at a time!");

Expand Down
9 changes: 5 additions & 4 deletions zero_bin/rpc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#[cfg_attr(
not(any(feature = "polygon_pos", feature = "cdk_erigon")),
cfg(feature = "eth_mainnet")
)]
#[cfg(any(
all(feature = "cdk_erigon", feature = "polygon_pos"),
all(feature = "cdk_erigon", feature = "eth_mainnet"),
all(feature = "polygon_pos", feature = "eth_mainnet"),
not(any(
feature = "cdk_erigon",
feature = "eth_mainnet",
feature = "polygon_pos"
))
))]
compile_error!("Only a single network feature should be enabled at a time!");

Expand Down
9 changes: 5 additions & 4 deletions zero_bin/verifier/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#[cfg_attr(
not(any(feature = "polygon_pos", feature = "cdk_erigon")),
cfg(feature = "eth_mainnet")
)]
#[cfg(any(
all(feature = "cdk_erigon", feature = "polygon_pos"),
all(feature = "cdk_erigon", feature = "eth_mainnet"),
all(feature = "polygon_pos", feature = "eth_mainnet"),
not(any(
feature = "cdk_erigon",
feature = "eth_mainnet",
feature = "polygon_pos"
))
))]
compile_error!("Only a single network feature should be enabled at a time!");

Expand Down

0 comments on commit e565030

Please sign in to comment.