Make all features explicit (#6267)

* make all features explicit

* Change to -feature suffix to with- prefix

* Add newline at the end of the Cargo.toml file

* Remove rhd feature

* Remove some features from Cargo.toml

* Remove test-helpers feature in tx pool

* Return db_open_error("with-"..

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Rename subdb feature to with-subdb

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* Remove 'strict' feature and cfg_attr

* Check for with-subdb feature instead of subdb

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
pscott
2020-06-08 15:43:00 +02:00
committed by GitHub
parent d884848625
commit 05ed129673
7 changed files with 21 additions and 19 deletions
+5 -5
View File
@@ -31,20 +31,20 @@
pub mod light;
pub mod offchain;
#[cfg(any(feature = "kvdb-rocksdb", test))]
#[cfg(any(feature = "with-kvdb-rocksdb", test))]
pub mod bench;
mod children;
mod cache;
mod changes_tries_storage;
mod storage_cache;
#[cfg(any(feature = "kvdb-rocksdb", test))]
#[cfg(any(feature = "with-kvdb-rocksdb", test))]
mod upgrade;
mod utils;
mod stats;
#[cfg(feature = "parity-db")]
#[cfg(feature = "with-parity-db")]
mod parity_db;
#[cfg(feature = "subdb")]
#[cfg(feature = "with-subdb")]
mod subdb;
use std::sync::Arc;
@@ -91,7 +91,7 @@ use log::{trace, debug, warn};
pub use sp_database::Database;
pub use sc_state_db::PruningMode;
#[cfg(any(feature = "kvdb-rocksdb", test))]
#[cfg(any(feature = "with-kvdb-rocksdb", test))]
pub use bench::BenchmarkingState;
const MIN_BLOCKS_TO_KEEP_CHANGES_TRIES_FOR: u32 = 32768;