improvement: feature flags for sled, rocksdb
This commit is contained in:
parent
2078af59d8
commit
cd4bc520d8
10 changed files with 71 additions and 50 deletions
|
@ -77,8 +77,12 @@ fn default_log() -> String {
|
|||
"info,state_res=warn,rocket=off,_=off,sled=off".to_owned()
|
||||
}
|
||||
|
||||
#[cfg(feature = "sled")]
|
||||
pub type Engine = abstraction::SledEngine;
|
||||
|
||||
#[cfg(feature = "rocksdb")]
|
||||
pub type Engine = abstraction::RocksDbEngine;
|
||||
|
||||
pub struct Database {
|
||||
pub globals: globals::Globals,
|
||||
pub users: users::Users,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue