feat(tvix/tools/crunch-v2): add CLI args
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>
This commit is contained in:
parent
4f22203a3a
commit
b38be028d9
6 changed files with 885 additions and 34 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue