feat: add dist
This commit is contained in:
18
bench_app/src/main.rs
Normal file
18
bench_app/src/main.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
fn main() -> anyhow::Result<()> {
|
||||
tokio::runtime::Builder::new_current_thread()
|
||||
.enable_all()
|
||||
.build()
|
||||
.unwrap()
|
||||
.block_on(async {
|
||||
tracing_subscriber::fmt().pretty().init();
|
||||
|
||||
let cmd = clap::Command::new("bench_app").subcommand(clap::Command::new("bench"));
|
||||
|
||||
match cmd.get_matches().subcommand() {
|
||||
Some(("bench", _)) => tracing::info!("some bench run"),
|
||||
_ => todo!(),
|
||||
}
|
||||
});
|
||||
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user