about summary refs log tree commit diff
path: root/tvix/tools/crunch-v2/src/lib.rs
blob: 0f84e84f1772db6d35d698594a986f5370b4b048 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
use lazy_static::lazy_static;

pub mod proto {
    include!(concat!(env!("OUT_DIR"), "/tvix.flatstore.v1.rs"));
}

lazy_static! {
    static ref DB: sled::Db = sled::open("crunch.db").unwrap();
    pub static ref FILES: sled::Tree = DB.open_tree("files").unwrap();
}