about summary refs log tree commit diff
path: root/tvix/tools/crunch-v2/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/tools/crunch-v2/src/lib.rs')
-rw-r--r--tvix/tools/crunch-v2/src/lib.rs10
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 0000000000..0f84e84f17
--- /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();
+}