54 lines
1.3 KiB
TOML
54 lines
1.3 KiB
TOML
[package]
|
|
name = "ruvector-economy-wasm"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["RuVector Team"]
|
|
license = "MIT"
|
|
description = "CRDT-based autonomous credit economy for distributed compute networks - WASM optimized"
|
|
repository = "https://github.com/ruvnet/ruvector"
|
|
keywords = ["wasm", "crdt", "distributed-economy", "p2p-credits", "reputation"]
|
|
categories = ["wasm", "cryptography", "data-structures"]
|
|
readme = "README.md"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
default = ["console_error_panic_hook"]
|
|
# Enable full QDAG ledger support
|
|
qdag = []
|
|
# Enable reputation scoring
|
|
reputation = []
|
|
# Enable all features
|
|
full = ["qdag", "reputation"]
|
|
|
|
[dependencies]
|
|
# WASM bindings
|
|
wasm-bindgen = "0.2"
|
|
js-sys = "0.3"
|
|
|
|
# Serialization
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
# Fast hashing for CRDT maps
|
|
rustc-hash = "2.0"
|
|
|
|
# Cryptographic hashing for Merkle roots
|
|
sha2 = { version = "0.10", default-features = false }
|
|
|
|
# Error handling for WASM
|
|
console_error_panic_hook = { version = "0.1", optional = true }
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = "0.3"
|
|
|
|
[profile.release]
|
|
lto = true
|
|
opt-level = "s"
|
|
codegen-units = 1
|
|
|
|
[package.metadata.wasm-pack.profile.release]
|
|
wasm-opt = ["-Os", "--enable-bulk-memory", "--enable-nontrapping-float-to-int"]
|