[package] name = "charter-compiler" version = "0.1.0" edition = "2021" authors = ["NAC Core Team "] description = "Charter Language Compiler for NAC Blockchain" license = "MIT" [dependencies] # NAC UDM - 统一定义模块 nac-udm = { path = "../nac-udm" } # 词法/语法分析 logos = "0.13" pest = "2.7" pest_derive = "2.7" # 数据结构 serde = { version = "1.0", features = ["derive"] } # 错误处理 thiserror = "2.0" anyhow = "1.0" # 命令行 clap = { version = "4.5", features = ["derive"] } # 日志 tracing = "0.1" tracing-subscriber = "0.3" # 工具 hex = "0.4" sha3 = "0.10" [dev-dependencies] tempfile = "3.8" criterion = "0.5" [[bin]] name = "charter" path = "src/main.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"