99 lines
1.7 KiB
TOML
99 lines
1.7 KiB
TOML
[package]
|
|
name = "nac-udm"
|
|
version = "1.0.0"
|
|
edition = "2021"
|
|
authors = ["NewAssetChain Team <dev@newassetchain.io>"]
|
|
description = "NAC Unified Definition Module - Single Source of Truth for NAC Blockchain"
|
|
license = "MIT"
|
|
repository = "https://github.com/newassetchain/nac-udm"
|
|
keywords = ["blockchain", "nac", "rwa", "definitions", "types"]
|
|
categories = ["cryptography::cryptocurrencies", "data-structures"]
|
|
|
|
[lib]
|
|
name = "nac_udm"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
nac-upgrade-framework = { path = "../nac-upgrade-framework" }
|
|
# 序列化
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
# 哈希和加密
|
|
blake3 = "1.5"
|
|
sha2 = "0.10"
|
|
sha3 = "0.10"
|
|
hex = "0.4"
|
|
|
|
# 数值类型
|
|
primitive-types = "0.12"
|
|
|
|
# 时间处理
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# 错误处理
|
|
thiserror = "2.0"
|
|
|
|
# 日志
|
|
log = "0.4"
|
|
serde_json = "1.0.149"
|
|
|
|
[dev-dependencies]
|
|
# 测试框架
|
|
criterion = "0.5"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = []
|
|
no_std = []
|
|
|
|
# 层级特性开关
|
|
l0-network = []
|
|
l1-runtime = []
|
|
l2-vm = []
|
|
l3-contract = []
|
|
l4-protocol = []
|
|
l5-compliance = []
|
|
l6-tooling = []
|
|
|
|
# 协议特性开关
|
|
acc-20 = []
|
|
acc-721 = []
|
|
acc-1155 = []
|
|
acc-rwa = []
|
|
acc-compliance = []
|
|
acc-valuation = []
|
|
acc-custody = []
|
|
acc-collateral = []
|
|
acc-redemption = []
|
|
acc-insurance = []
|
|
acc-governance = []
|
|
acc-xtzh = []
|
|
acc-reserve = []
|
|
|
|
# 核心概念特性开关
|
|
asset-forking = []
|
|
one-token-multiple-chains = []
|
|
one-chain-multiple-layers = []
|
|
multiple-chains-parallel = []
|
|
one-chain-multiple-forks = []
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
codegen-units = 1
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
|
|
# [[bench]]
|
|
# name = "benchmarks"
|
|
# harness = false
|
|
|
|
[lints.rust]
|
|
missing_docs = "allow"
|
|
unused_doc_comments = "allow"
|
|
non_camel_case_types = "allow"
|
|
|
|
[lints.rustdoc]
|
|
all = "allow"
|