73 lines
1.3 KiB
TOML
73 lines
1.3 KiB
TOML
[package]
|
|
name = "nac-cli"
|
|
version = "2.0.0"
|
|
edition = "2021"
|
|
authors = ["NAC Team"]
|
|
description = "NAC Developer Toolbox v2.0 - 完美中心化框架下的去中心化开发工具"
|
|
license = "MIT"
|
|
|
|
[[bin]]
|
|
name = "nac"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
nac-upgrade-framework = { path = "../nac-upgrade-framework" }
|
|
# 命令行工具
|
|
clap = { version = "4.5", features = ["derive", "cargo"] }
|
|
colored = "2.1"
|
|
dialoguer = { version = "0.11", features = ["password"] }
|
|
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"
|
|
aes-gcm = "0.10"
|
|
|
|
# 工具
|
|
chrono = "0.4"
|
|
md5 = "0.7"
|
|
dirs = "5.0"
|
|
prettytable-rs = "0.10"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.10"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|
|
|
|
[lints.rust]
|
|
missing_docs = "allow"
|
|
unused_doc_comments = "allow"
|
|
non_camel_case_types = "allow"
|
|
dead_code = "allow"
|
|
unused_imports = "allow"
|
|
unused_variables = "allow"
|
|
|
|
[lints.rustdoc]
|
|
all = "allow"
|