diff --git a/crates/revm/Cargo.toml b/crates/revm/Cargo.toml index 0435a4b066..98d6ac87b8 100644 --- a/crates/revm/Cargo.toml +++ b/crates/revm/Cargo.toml @@ -54,3 +54,4 @@ ethersdb = ["tokio", "futures", "ethers-providers", "ethers-core"] serde = ["dep:serde", "hex/serde", "hashbrown/serde", "revm-interpreter/serde"] # deprecated feature web3db = [] +with-serde = [] diff --git a/crates/revm/src/lib.rs b/crates/revm/src/lib.rs index 24cf98a634..2c85445fd6 100644 --- a/crates/revm/src/lib.rs +++ b/crates/revm/src/lib.rs @@ -6,6 +6,9 @@ mod evm_impl; mod inspector; mod journaled_state; +#[cfg(all(feature = "with-serde", not(feature = "serde")))] +compile_error!("`with-serde` feature has been renamed to `serde`."); + pub(crate) const USE_GAS: bool = !cfg!(feature = "no_gas_measuring"); pub type DummyStateDB = InMemoryDB;