use once_cell::sync::Lazy; use sled::{Config, Db}; pub const PARTS_TREE: &str = "parts"; pub const CARS_TREE: &str = "cars"; pub static REPO_INSTANCE: Lazy = Lazy::new(|| { Config::default() .path("/tmp/twinh") .open() .expect("Couldn't open DB!") });