Files
consensus/pkg/rust/Cargo.toml
T
zeekay 02be79047d pkg/rust: align prose with Corona purge — Pulsar is the PQ name
The Go-side Corona purge (commits 045c944d, f6753f3b, d1c8a2cc) was
not propagated to pkg/rust prose. README, Cargo.toml description, and
the top-level //! docstring in src/lib.rs still said "BLS12-381 +
Corona" or "BLS + Corona signatures" while the Go consensus stack
renamed to Pulsar (Module-LWE) + Corona (Ring-LWE) per LP-4200.

Update README + Cargo.toml description + lib.rs //! header to use
"Pulsar (Module-LWE threshold, FIPS 204 byte-equal)" — matching the
canonical naming in consensus/CLAUDE.md.

Cargo.lock 1.22.0 → 1.22.1 was already in the working tree from the
pending version bump; commits alongside this prose alignment so the
next crates.io publish carries both.

NOT renamed: public API field names (corona_sig, corona_pubkey,
collect_corona_signatures, etc.) — breaking surface renames need a
deliberate decision and a coordinated minor/major bump. Prose
alignment is the safe patch.

`cargo check --no-default-features` PASS.
2026-05-14 08:55:30 -07:00

65 lines
1.6 KiB
TOML

[package]
name = "lux-consensus"
version = "1.22.1"
edition = "2021"
description = "Lux Consensus SDK — pure-Rust Quasar post-quantum probabilistic consensus (Wave / FPC / Photon / Focus / Quasar PQ finality via hybrid BLS12-381 + Pulsar = P3Q)"
license-file = "LICENSE"
repository = "https://github.com/luxfi/consensus"
homepage = "https://lux.network"
readme = "README.md"
keywords = ["consensus", "post-quantum", "quasar", "probabilistic", "lux"]
categories = ["cryptography", "algorithms", "network-programming"]
authors = ["Lux Industries Inc."]
exclude = ["tests/*.old", "target/"]
[package.metadata.docs.rs]
no-default-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
hex = "0.4"
libc = "0.2"
# BLS12-381 signatures for Quasar consensus
blst = "0.3"
# Optional GPU acceleration dependencies
# MLX (Apple Silicon) - via C++ bindings
mlx-sys = { version = "0.1", optional = true }
# BLAKE3 for fast hashing (SIMD optimized)
blake3 = { version = "1.5", optional = true }
# Parallel processing
rayon = { version = "1.10", optional = true }
[build-dependencies]
cc = "1.0"
[lib]
name = "lux_consensus"
path = "src/lib.rs"
crate-type = ["rlib"]
[features]
default = []
# CPU-optimized with SIMD (no GPU)
simd = ["blake3", "rayon"]
# Apple Silicon GPU acceleration via MLX
mlx = ["mlx-sys", "simd"]
# NVIDIA GPU acceleration via CUDA (future)
cuda = ["simd"]
# Full GPU acceleration (MLX on macOS, CUDA on Linux/Windows)
gpu = ["mlx", "cuda"]
# [[example]]
# name = "basic_usage"
# path = "examples/basic_usage.rs"
[dev-dependencies]
criterion = { version = "0.7.0", features = ["html_reports"] }
[[bench]]
name = "consensus_bench"
harness = false