move state to jsondb
This commit is contained in:
parent
446c0f0264
commit
073feda920
8 changed files with 145 additions and 143 deletions
12
src/state.rs
Normal file
12
src/state.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
use jsondb::JsonDb;
|
||||
|
||||
mod v0 {
|
||||
pub type State = crate::store::StoredFiles;
|
||||
|
||||
impl jsondb::SchemaV0 for State {
|
||||
const VERSION_OPTIONAL: bool = true;
|
||||
}
|
||||
}
|
||||
|
||||
pub use v0::State;
|
||||
pub type StateDb = JsonDb<State>;
|
Loading…
Add table
Add a link
Reference in a new issue