Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cloud-checksum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ authors.workspace = true
clap = { version = "4", features = ["derive", "env", "cargo"] }
thiserror = "2"
rand = "0.9"
tracing-subscriber = { version = "0.3", features = [ "std", "env-filter" ] }

# Async
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "test-util", "io-util", "io-std", "fs"] }
Expand Down
7 changes: 7 additions & 0 deletions cloud-checksum/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
use cloud_checksum::cli::Command;
use cloud_checksum::error::Result;
use tracing_subscriber::EnvFilter;

#[tokio::main]
async fn main() -> Result<()> {
// install global collector configured based on RUST_LOG env var.
let _ = tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env())
.with_writer(std::io::stderr)
.try_init();

let args = Command::parse_args()?;

args.execute().await?;
Expand Down
Loading