88 lines
1.9 KiB
TOML
88 lines
1.9 KiB
TOML
[package]
|
|
name = "nac-sdk"
|
|
version = "2.0.0"
|
|
edition = "2021"
|
|
authors = ["NewAssetChain Team <dev@newassetchain.io>"]
|
|
description = "NAC (NewAssetChain) SDK - Native Rust implementation for RWA blockchain"
|
|
license = "MIT"
|
|
repository = "https://github.com/newassetchain/nac-sdk"
|
|
keywords = ["blockchain", "rwa", "nac", "sdk", "crypto"]
|
|
categories = ["cryptography", "web-programming"]
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
nac-upgrade-framework = { path = "../nac-upgrade-framework" }
|
|
# NAC Core Dependencies
|
|
nac-udm = { path = "../nac-udm" }
|
|
|
|
# Cryptography
|
|
blake3 = "1.5"
|
|
sha3 = "0.10"
|
|
ed25519-dalek = "2.1"
|
|
x25519-dalek = "2.0"
|
|
|
|
# Serialization
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
bincode = "1.3"
|
|
|
|
# HTTP Client
|
|
reqwest = { version = "0.11", features = ["json", "rustls-tls"], default-features = false }
|
|
tokio = { version = "1.35", features = ["full"] }
|
|
|
|
# WebSocket
|
|
tokio-tungstenite = { version = "0.21", features = ["rustls-tls-webpki-roots"] }
|
|
|
|
# Error Handling
|
|
thiserror = "1.0"
|
|
anyhow = "1.0"
|
|
|
|
# Logging
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
|
|
# Utilities
|
|
hex = "0.4"
|
|
base64 = "0.21"
|
|
chrono = "0.4"
|
|
|
|
# WASM Support
|
|
wasm-bindgen = { version = "0.2", optional = true }
|
|
wasm-bindgen-futures = { version = "0.4", optional = true }
|
|
js-sys = { version = "0.3", optional = true }
|
|
web-sys = { version = "0.3", features = ["Window", "Document", "console"], optional = true }
|
|
|
|
[dev-dependencies]
|
|
tokio-test = "0.4"
|
|
mockito = "1.2"
|
|
|
|
[features]
|
|
default = ["native"]
|
|
native = []
|
|
wasm = ["wasm-bindgen", "wasm-bindgen-futures", "js-sys", "web-sys"]
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|
|
|
|
[profile.release-wasm]
|
|
inherits = "release"
|
|
opt-level = "z"
|
|
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"
|