Installation & Builds¶
LEAP builds fully offline from a clean checkout of this repository. The pinned toolchain is Rust 1.98.0 (stable, edition 2024). Cargo.lock is committed and must be honored with --locked; do not substitute a different toolchain or update the lockfile for a release build.
Prerequisites¶
- Rust 1.98.0 via rustup:
rustup toolchain install 1.98.0 --profile minimal, then confirmrustc --versionandcargo --versionboth report1.98.0. - Python 3.12+ for the license/notice audit step.
bashand coreutilssha256sumfor the packaging and checksum steps.- Crate sources already in the local cargo registry cache (or a vendored directory configured in
.cargo/config.toml).--offlinemakes cargo fail rather than fetch.
Offline build¶
# Verify the pinned toolchain
rustc --version # rustc 1.98.0 ...
cargo --version # cargo 1.98.0 ...
# Run the full workspace test suite
cargo test --workspace --offline --locked
# Build the release binaries
cargo build --release --offline --locked
Expected outputs:
target/release/leap-desktop— native GUI application (leap-desktop --demoloads the built-in engineering demo dataset)target/release/leap— command-line interface (leap --help)
Release artifacts¶
# Verify the license and notice inventory
python3 scripts/audit_licenses.py --check
# Build the release artifacts (binaries, notices, checksums)
bash scripts/build_release.sh
# Package the corresponding source archive
bash scripts/package_source.sh
# Verify the published checksums
sha256sum -c SHA256SUMS.txt
Steps 2 and 3 write SHA256SUMS.txt into the directory holding the artifacts they produce; run step 4 from that directory and expect OK for every line. These release checksums are distinct from tests/fixtures/nist/SHA256SUMS.txt, which checksums the NIST StRD reference fixtures (verified 11/11).
After installing system-wide, the entry points are simply leap-desktop --demo and leap --help. Example:
cargo install --path crates/leap-cli --locked --offline
Reproducibility¶
Reproducibility means the same source revision, toolchain and lockfile produce equivalent release artifacts on a clean machine. Byte-for-byte identity is not promised for signed/notarized output or archive container metadata; record any such differences instead of hiding them.
GPL-3.0-or-later source delivery¶
Any conveyance of the application — binaries or modified source — must satisfy GNU GPL version 3 or later. In practice, ship:
- The complete corresponding source code, or a written offer valid for at least three years — including the build scripts (
scripts/),Cargo.toml,Cargo.lock, and the offline build recipe, so recipients can rebuild the exact release. LICENSE(the full GPL-3.0-or-later text) andTHIRD_PARTY_NOTICES.md(attribution and license texts for bundled third-party components).- A copy of the license with every binary distribution, and notices for every modified file. Modified versions must be marked as such and carry the same license.
This summary is not legal advice; consult LICENSING.md and the license text for the binding terms.
Offline guarantees
All shipped functionality is 100% offline: no accounts, no cloud services, no telemetry, no external API calls. Keep --offline --locked on every command so a release build can never silently resolve a different dependency graph.