NAC_Blockchain/cnnl-compiler/Cargo.toml

62 lines
1.0 KiB
TOML

[package]
name = "cnnl-compiler"
version = "0.1.0"
edition = "2021"
authors = ["NAC Core Team <dev@newassetchain.io>"]
description = "CNNL (Constitutional Neural Network Language) Compiler Library for NAC Blockchain"
license = "MIT"
repository = "https://github.com/newassetchain/cnnl-compiler"
[dependencies]
# 词法分析
logos = "0.13"
# 语法分析
lalrpop-util = { version = "0.20", features = ["lexer"] }
# 序列化
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# 错误处理
thiserror = "1.0"
anyhow = "1.0"
# 日志
log = "0.4"
env_logger = "0.11"
# 哈希
sha3 = "0.10"
hex = "0.4"
[build-dependencies]
lalrpop = "0.20"
[dev-dependencies]
pretty_assertions = "1.4"
[lib]
name = "cnnl_compiler"
path = "src/lib.rs"
[[bin]]
name = "cnnl"
path = "src/bin/cnnl.rs"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
[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"