[package] name = "avalanche-utils" version = "0.0.12" # https://crates.io/crates/avalanche-utils edition = "2021" rust-version = "1.62" publish = true description = "Avalanche utilities" license = "BSD-3-Clause" homepage = "https://avax.network" repository = "https://github.com/ava-labs/avalanche-rust/tree/main/utils" readme = "README.md" [dependencies] bs58 = "0.4.0" human-readable = "0.0.1" lazy_static = "1.4.0" log = "0.4.17" random-manager = "0.0.1" # [OPTIONAL] for "big_int" num-bigint = { version = "0.4.3", optional = true } serde = { version = "1.0.139", features = ["derive"], optional = true } # [OPTIONAL] for "home_dir" dirs = { version = "4.0.0", optional = true } # [OPTIONAL] for "install_avalanchego" compress-manager = { version = "0.0.2", optional = true } http-manager = { version = "0.0.1", optional = true } serde_json = { version = "1.0.82", optional = true } # [OPTIONAL] for "system_id" ripemd = { version = "0.1.1", optional = true } whoami = { version = "1.2.1", optional = true } # [OPTIONAL] for "rfc3339" and "time" chrono = { version = "0.4.19", optional = true } # [OPTIONAL] for "prometheus" regex = { version = "1.6.0", optional = true } [dev-dependencies] env_logger = "0.9.0" proptest = "1.0.0" tempfile = "3.3.0" tokio-test = "0.4.2" [features] default = [] full = ["big_int", "home_dir", "install_avalanchego", "system_id", "prometheus", "rfc3339", "time"] big_int = ["num-bigint", "serde"] home_dir = ["dirs"] install_avalanchego = ["serde", "compress-manager", "http-manager", "serde_json"] prometheus = ["chrono", "regex"] rfc3339 = ["chrono", "serde"] system_id = ["ripemd", "whoami"] time = ["chrono"] [[example]] name = "install_avalanchego" required-features = ["install_avalanchego"]