Build from source

Build from source

Compile LUKSbox yourself, run the test suite, build release archives, verify where a release came from.

Prerequisites

Tool Version Why
Rust toolchain 1.88+ Workspace MSRV
pkg-config any Discovers system libfido2 + libfuse
clang any Used by bindgen to regenerate libfido2 bindings at build time
libfido2-dev 1.10+ Headers for the FIDO2 path
libfuse3-dev 3.10+ Headers for the FUSE mount path on Linux

On a fresh Debian / Ubuntu:

sudo apt install -y build-essential pkg-config clang \
    libfido2-dev libssl-dev libudev-dev zlib1g-dev libfuse3-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Clone + build

git clone https://github.com/penthertz/LUKSbox.git
cd LUKSbox

# CLI
cargo build --release -p luksbox-cli

# GUI (egui)
cargo build --release -p luksbox-gui

# Software-only build (no libfido2, no FUSE - useful for sandboxes)
cargo build --release --no-default-features

The release binaries land in target/release/.

Run the test suite

cargo test --workspace
cargo audit                         # zero advisories on Linux/macOS

The hardware-FIDO2 tests are gated behind --features hardware and require a real plugged-in authenticator. See TESTING.md for the full hardware test matrix.

Build release archives for several platforms

scripts/build_release.sh builds CLI archives for every target the host can build, with the version taken from Cargo.toml:

Target Output
x86_64-unknown-linux-gnu Linux amd64 .tar.gz
aarch64-unknown-linux-gnu Linux arm64 .tar.gz
x86_64-apple-darwin macOS Intel .tar.gz
aarch64-apple-darwin macOS Apple Silicon .tar.gz
x86_64-pc-windows-gnu Windows portable .zip (MinGW)
./scripts/build_release.sh                          # every target this host can build
./scripts/build_release.sh --targets linux-amd64    # only one
# Archives land in dist/luksbox-<version>-<target>.<ext>

macOS targets need a Mac (or an osxcross setup); --use-cross builds the other targets in Docker through cross; --help lists the options. The files on the Releases page (.deb, .rpm, AppImage, .dmg, .msi, ...) are built by the .github/workflows/release.yml GitHub Actions workflow, not by this script.

macOS on Intel

Releases ship Apple Silicon builds only. On an Intel Mac, build from source:

brew install libfido2 pkg-config
brew tap macos-fuse-t/homebrew-cask && brew install --cask fuse-t
cargo build --profile release-hardened -p luksbox-cli -p luksbox-gui \
    --no-default-features --features hardware,fuse-t,winfsp
# Binaries in target/release-hardened/

The release-hardened profile uses the same hardening settings as the shipped Apple Silicon build, and hardware adds the Secure Enclave and TPM code the release builds have. To build against macFUSE instead, install it and replace fuse-t with fuse; see docs/MACOS_FUSE_T.md.

Verify where a release came from

LUKSbox builds are not bit-for-bit reproducible yet (see SECURITY.md), so a local build does not hash the same as the published one. What you can verify is that a published file was built by the release workflow from the tagged, GPG-signed commit:

gh attestation verify luksbox-v0.6.1-x86_64-linux-noble.tar.gz --owner penthertz

and that it matches the release's SHA256SUMS.txt:

sha256sum -c --ignore-missing SHA256SUMS.txt

Toolchain-pinning for security-critical builds

For air-gapped or compliance-critical environments, pin the exact Rust toolchain version + every dependency hash via the workspace Cargo.lock:

# Fail the build if Cargo.lock is stale relative to Cargo.toml
cargo check --locked

# Or generate a frozen vendored copy of every dep
cargo vendor > .cargo/config.toml
# Then commit .cargo/config.toml + vendor/ to your internal mirror

Build the docs site

This site (the one you're reading) is built with Hugo:

cd LUKSbox\ website/hugo
hugo serve     # local preview at http://localhost:1313/
hugo            # production build into ./public/

See LUKSbox_website/hugo/README.md for the full docs-build workflow.