Skip to content

Commit

Permalink
fix: actually used rocksdb feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
tdelabro authored Jan 15, 2024
2 parents 8d5dafc + 315546d commit 72695fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ rocksdb = ["dep:rocksdb"]

[dependencies]
parity-scale-codec = { version = "3.0.0", features = ["derive"] }
rocksdb = { optional = true, version = "0.21.0", features = ["multi-threaded-cf"] }
serde = { version = "1.0.193", features = ["derive"] }
bincode = "1.3.3"
log = "0.4.20"
Expand All @@ -24,6 +23,9 @@ derive_more = { version = "0.99.17", features = ["constructor"] }
mp-felt = { git = "https://github.com/keep-starknet-strange/madara.git", rev = "f30acea8af7e28e956e771928130e12bfc084832", package = "mp-felt", features = ["parity-scale-codec", "serde"]}
mp-hashers = { git = "https://github.com/keep-starknet-strange/madara.git", rev = "f30acea8af7e28e956e771928130e12bfc084832", package = "mp-hashers" }

# Optionals
rocksdb = { optional = true, version = "0.21.0", features = ["multi-threaded-cf"] }

[dev-dependencies]
tempfile = "3.8.0"
mp-commitments = { git = "https://github.com/keep-starknet-strange/madara.git", rev = "f30acea8af7e28e956e771928130e12bfc084832", package = "mp-commitments" }
Expand Down
2 changes: 2 additions & 0 deletions src/databases/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#![allow(dead_code)]
mod hashmap_db;

#[cfg(feature = "rocksdb")]
mod rocks_db;

#[cfg(feature = "rocksdb")]
pub use rocks_db::{create_rocks_db, RocksDB, RocksDBBatch, RocksDBConfig};

0 comments on commit 72695fe

Please sign in to comment.