54 lines
912 B
TOML
54 lines
912 B
TOML
[package]
|
|
name = "cargo-constitution"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["NAC Core Team <dev@newassetchain.io>"]
|
|
description = "Rust compiler lint plugin for NAC constitutional constraints"
|
|
license = "MIT"
|
|
|
|
[dependencies]
|
|
# 序列化
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
# 错误处理
|
|
thiserror = "1.0"
|
|
anyhow = "1.0"
|
|
|
|
# 日志
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
|
|
# 文件系统
|
|
walkdir = "2.5"
|
|
|
|
# 正则表达式
|
|
regex = "1.10"
|
|
|
|
[dev-dependencies]
|
|
pretty_assertions = "1.4"
|
|
|
|
[lib]
|
|
name = "cargo_constitution"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "cargo-constitution"
|
|
path = "src/bin/cargo-constitution.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"
|