NAC_Blockchain/xtzh-ai/Cargo.toml

113 lines
2.3 KiB
TOML
Raw Permalink 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 = "xtzh-ai"
version = "1.0.0"
edition = "2021"
authors = ["NAC AI Lab <ai@nac.network>"]
description = "XTZH AI汇率定价模型系统 - NAC原生RWA公链价值稳定机制"
license = "MIT"
repository = "https://github.com/NAC/xtzh-ai"
keywords = ["nac", "xtzh", "ai", "stablecoin", "rwa"]
categories = ["cryptography::cryptocurrencies", "science"]
[dependencies]
# NAC核心依赖
nac-udm = { path = "../nac-udm" }
# nvm_v2 = { path = "../nvm_v2" } # 将在后续阶段集成
# 数据处理
polars = { version = "0.36", features = ["lazy", "temporal", "parquet", "json"] }
# arrow = "50.0"
# parquet = "50.0" # polars已包含这些依赖
# 数值计算
ndarray = { version = "0.15", features = ["rayon", "serde"] }
ndarray-stats = "0.5"
nalgebra = "0.32"
# 机器学习Rust原生
# linfa = "0.7"
# linfa-preprocessing = "0.7"
# smartcore = "0.3" # 将在后续阶段集成
# 序列化
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bincode = "1.3"
# 异步运行时
tokio = { version = "1.35", features = ["full"] }
async-trait = "0.1"
# 网络与API
tonic = { version = "0.10", features = ["tls"] }
prost = "0.12"
reqwest = { version = "0.11", features = ["json", "rustls-tls"] }
hyper = { version = "0.14", features = ["full"] }
# 密码学
blake3 = "1.5"
ed25519-dalek = "2.1"
bls12_381 = "0.8"
hex = "0.4"
# 错误处理
thiserror = "1.0"
anyhow = "1.0"
# 日志
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# 时间处理
chrono = { version = "0.4", features = ["serde"] }
# 配置
config = "0.14"
toml = "0.8"
# 并发
rayon = "1.8"
crossbeam = "0.8"
# 工具
lazy_static = "1.4"
once_cell = "1.19"
[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
proptest = "1.4"
approx = "0.5"
[build-dependencies]
tonic-build = "0.10"
prost-build = "0.12"
# Benchmarks将在后续阶段添加
# [[bench]]
# name = "model_inference"
# harness = false
#
# [[bench]]
# name = "data_pipeline"
# harness = false
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
[profile.bench]
inherits = "release"
[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"