diff options
Diffstat (limited to 'tvix/tools/crunch-v2/src/lib.rs')
-rw-r--r-- | tvix/tools/crunch-v2/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tvix/tools/crunch-v2/src/lib.rs b/tvix/tools/crunch-v2/src/lib.rs new file mode 100644 index 000000000000..0f84e84f1772 --- /dev/null +++ b/tvix/tools/crunch-v2/src/lib.rs @@ -0,0 +1,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(); +} |