diff --git a/Cargo.lock b/Cargo.lock index 016ed48..dd681e4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -838,9 +838,9 @@ checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" -version = "0.3.3" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7" +checksum = "bd5256b483761cd23699d0da46cc6fd2ee3be420bbe6d020ae4a091e70b7e9fd" [[package]] name = "hex" diff --git a/Cargo.toml b/Cargo.toml index 0ad7268..d3299b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,12 +47,14 @@ thiserror.workspace = true tracing.workspace = true tracing-subscriber.workspace = true url.workspace = true -tokio = { version = "1.15.0", features = ["full"] } +tokio = { version = "1.15.0", features = ["full"], optional = true } [features] default = [] abigen-rs = ["cainome-rs-macro"] +build-binary = ["tokio"] [[bin]] name = "cainome" path = "src/bin/cli/main.rs" +required-features = ["build-binary"]