mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 19:31:02 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user