OverviewFilesCommitsIssuesDocsReleasesPeers

hypercore-kb / opencog-kb / basal-atomspace / rust-atomspace / Cargo.toml

46 lines · toml ref:
[package]
name = "hyper-atomspace"
version = "0.1.0"
edition = "2021"
description = "Billion-scale AtomSpace with P2P sync"

[lib]
crate-type = ["cdylib", "rlib"]

[features]
default = ["rocksdb-storage"]
rocksdb-storage = ["rocksdb"]
wasm = ["wasm-bindgen", "getrandom/js"]
napi = ["napi-rs", "napi-derive"]

[dependencies]
# Core
serde = { version = "1.0", features = ["derive"] }
bincode = "1.3"
blake3 = "1.5"  # Fast hashing
parking_lot = "0.12"  # Fast locks
rayon = "1.8"  # Parallelism

# Storage (optional, for native)
rocksdb = { version = "0.21", optional = true }

# WASM (optional)
wasm-bindgen = { version = "0.2", optional = true }
getrandom = { version = "0.2", optional = true }

# Node.js native addon (optional)
napi-rs = { version = "2", optional = true }
napi-derive = { version = "2", optional = true }

[dev-dependencies]
criterion = "0.5"
tempfile = "3.8"

[[bench]]
name = "atomspace_bench"
harness = false

[profile.release]
lto = true
codegen-units = 1