NAC_Blockchain/nac-cli/Cargo.toml

73 lines
1.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[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 已移除NAC 使用 BLS12-381 曲线,不使用以太坊的 secp256k1
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"