about summary refs log tree commit diff
path: root/tvix/tools/crunch-v2/src/lib.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-01-25T12·47+0200
committerclbot <clbot@tvl.fyi>2024-01-27T18·40+0000
commitb38be028d96ce107439f3323026270228a871a13 (patch)
tree991bc6341714a3896645240309d88dc20784f90e /tvix/tools/crunch-v2/src/lib.rs
parent4f22203a3aecd070881ae9b4eabc47532d948f01 (diff)
feat(tvix/tools/crunch-v2): add CLI args r/7453
Use clap derive to make the input and output files configurable, as well
as the chunk size parameters.

Change-Id: I02b29126f3bd2c13ba2c6e7e0aa4ff048ff803ed
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10691
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: edef <edef@edef.eu>
Diffstat (limited to 'tvix/tools/crunch-v2/src/lib.rs')
-rw-r--r--tvix/tools/crunch-v2/src/lib.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/tvix/tools/crunch-v2/src/lib.rs b/tvix/tools/crunch-v2/src/lib.rs
index 0f84e84f1772..09ea2e75d5a3 100644
--- a/tvix/tools/crunch-v2/src/lib.rs
+++ b/tvix/tools/crunch-v2/src/lib.rs
@@ -1,10 +1,3 @@
-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();
-}