[package] name = "nac-cli" version = "1.0.0" edition = "2021" authors = ["NAC Team"] description = "NAC区块链命令行工具(支持中文)" license = "MIT" [[bin]] name = "nac" path = "src/main.rs" [dependencies] # 命令行工具 clap = { version = "4.5", features = ["derive", "cargo"] } colored = "2.1" dialoguer = "0.11" indicatif = "0.17" # 配置和序列化 serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_yaml = "0.9" toml = "0.8" # 错误处理 anyhow = "1.0" thiserror = "2.0" # 日志 log = "0.4" env_logger = "0.11" # 异步运行时 tokio = { version = "1.0", features = ["full"] } # HTTP客户端 reqwest = { version = "0.12", features = ["json"] } # 密码学 sha3 = "0.10" hex = "0.4" secp256k1 = { version = "0.29", features = ["rand", "rand-std"] } rand = "0.8" # 工具 chrono = "0.4" dirs = "5.0" prettytable-rs = "0.10" [dev-dependencies] tempfile = "3.10" [profile.release] opt-level = 3 lto = true codegen-units = 1 strip = true