NAC_Blockchain/cnnl-service/Cargo.toml

40 lines
699 B
TOML

[package]
name = "nac-cnnl-service"
version = "0.1.0"
edition = "2021"
authors = ["NAC Core Team <dev@newassetchain.io>"]
description = "CNNL HTTP Service - RESTful API for CNNL Compiler"
[dependencies]
# HTTP 框架
actix-web = "4"
actix-rt = "2"
# 序列化
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# 错误处理
thiserror = "1.0"
anyhow = "1.0"
# 日志
log = "0.4"
env_logger = "0.11"
# 时间
chrono = { version = "0.4", features = ["serde"] }
hex = "0.4"
# CNNL 编译器库(本地路径)
cnnl-compiler = { path = "../cnnl-compiler" }
[[bin]]
name = "nac-cnnl-service"
path = "src/main.rs"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1