Files
consensus/pkg/typescript/Cargo.toml
T
zeekay 7a1591ee63 feat: update consensus v1.22.1 - context improvements and TypeScript SDK
- Add context extension methods for uptime and node info
- Add NoOpCalculator for uptime in test contexts
- Update locked calculator with proper interface compliance
- Remove experimental quasar event horizon duplicates
- Add TypeScript/NAPI SDK bindings for consensus
- Update Rust bindings and tests
2025-12-03 23:56:12 -08:00

36 lines
735 B
TOML

[package]
name = "lux-consensus-napi"
version = "1.22.0"
edition = "2021"
description = "TypeScript/Node.js bindings for Lux Consensus SDK"
license = "MIT"
repository = "https://github.com/luxfi/consensus"
[lib]
crate-type = ["cdylib"]
[dependencies]
# NAPI-RS for Node.js bindings
napi = { version = "2", features = ["napi4", "async", "serde-json"] }
napi-derive = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
hex = "0.4"
# Link to the core consensus crate
lux-consensus = { path = "../rust" }
[build-dependencies]
napi-build = "2"
[profile.release]
lto = true
strip = true
[features]
default = []
# Enable MLX GPU acceleration (Apple Silicon)
mlx = []
# Enable CUDA GPU acceleration (NVIDIA)
cuda = []