Skip to content

Installation

caps-sa requires Rust 1.89 or newer (the AVX-512 LCP fast path uses intrinsics stabilised in 1.89; the crate still compiles on 1.88 without that one fast path).

Add it from crates.io:

Terminal window
cargo add caps-sa

Or pin it in Cargo.toml directly:

[dependencies]
caps-sa = "0.7"

The crate has a small dependency surface — rayon and tempfile — and no C/C++ build step.

The caps_sa command is shipped as a Cargo example. Build it from a clone:

target/release/examples/caps_sa
git clone https://github.com/COMBINE-lab/caps-sa
cd caps-sa
cargo build --release --example caps_sa

Or install it onto your $PATH straight from the repository:

Terminal window
cargo install --git https://github.com/COMBINE-lab/caps-sa --example caps_sa

The in-memory and external-memory paths build and run on Linux, macOS, and Windows (x86-64 and aarch64). The SIMD LCP kernel auto-selects the best available backend at runtime — AVX-512BW → AVX2 → NEON → scalar — so a binary built on one host stays correct on another.

Next: Quick start.