Skip to content

Commit

Permalink
revm: mark with-serde feature as deprecated (#328)
Browse files Browse the repository at this point in the history
* chore: add compile_error on deprecated feature with-serde

* chore: re-add flag so compilation message is clear

* chore: apply suggestions from code review

* fix: add proper not statement

Co-authored-by: Enrique Ortiz <[email protected]>
  • Loading branch information
Evalir and Evalir authored Jan 12, 2023
1 parent 6f065fd commit b60269c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
3 changes: 3 additions & 0 deletions crates/revm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b60269c

Please sign in to comment.