64 lines
1.2 KiB
TOML
64 lines
1.2 KiB
TOML
[package]
|
|
name = "nac-monitor"
|
|
version = "1.0.0"
|
|
edition = "2021"
|
|
authors = ["NewAssetChain Team <dev@newassetchain.io>"]
|
|
description = "NAC监控平台 - 实时监控和性能分析"
|
|
license = "MIT"
|
|
|
|
[[bin]]
|
|
name = "nac-monitor"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
nac-upgrade-framework = { path = "../nac-upgrade-framework" }
|
|
# CLI
|
|
clap = { version = "4.5", features = ["derive", "cargo"] }
|
|
colored = "2.1"
|
|
|
|
# Web服务
|
|
axum = "0.7"
|
|
tower = "0.4"
|
|
tower-http = { version = "0.5", features = ["fs", "cors"] }
|
|
|
|
# 序列化
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
# 错误处理
|
|
anyhow = "1.0"
|
|
thiserror = "1.0"
|
|
|
|
# 日志
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
|
|
# 异步运行时
|
|
tokio = { version = "1.35", features = ["full"] }
|
|
|
|
# 时间处理
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# UUID生成
|
|
uuid = { version = "1.0", features = ["v4"] }
|
|
|
|
# 指标收集
|
|
prometheus = "0.13"
|
|
|
|
[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"
|