[package] name = "nac-sdk" version = "2.1.0" edition = "2021" authors = ["NAC Team"] description = "NAC (NewAssetChain) SDK - Native Rust Implementation for RWA Blockchain" license = "MIT" repository = "https://github.com/nac/nac-sdk" keywords = ["blockchain", "nac", "rwa", "sdk"] categories = ["cryptography", "blockchain"] [dependencies] nac-upgrade-framework = { path = "../nac-upgrade-framework" } nac-udm = { path = "../nac-udm" } nac-nvm = { path = "../nac-nvm" } nac-cbpp = { path = "../nac-cbpp" } nac-lens = { path = "../nac-lens" } # Cryptography blake3 = "1.5" sha3 = "0.10" ed25519-dalek = "2.1" rand = "0.8" 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 tungstenite = "0.21" tokio-tungstenite = "0.21" # Utilities hex = "0.4" thiserror = "1.0" anyhow = "1.0" log = "0.4" tracing = "0.1" # WASM support (optional) 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"