Skip to content

Build and run

Download the latest release from GitHub:

Each release includes:

  • safeparts (CLI)
  • safeparts-tui (terminal UI)

Quick sanity check:

  1. Put the binaries on your PATH.
  2. Run safeparts —help.
  3. Run safeparts-tui —help.

If you download the release binaries via a browser, macOS may quarantine them and show “cannot be opened because the developer cannot be verified”.

If you built from source, you usually will not see this.

If you trust the download and want to remove the quarantine attribute:

Terminal window
# Point this at the folder you extracted the release into
xattr -dr com.apple.quarantine /path/to/safeparts-release/
# Or remove it per-binary
xattr -d com.apple.quarantine /path/to/safeparts
xattr -d com.apple.quarantine /path/to/safeparts-tui

Prereqs:

  • Rust stable + rustfmt and clippy

Build + tests:

Terminal window
cargo build
cargo test --all-features

CI-style lint:

Terminal window
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings

The web app lives in web/. It runs split/combine in your browser via WASM.

Prereqs:

  • Bun
  • wasm-pack (or let the build script install it)

Run locally:

Terminal window
cd web
bun install
bun run build:wasm
bun run dev

Open http://localhost:5173.

If you want a single command that builds WASM + the web UI + the docs site and serves them, you can use the repo’s Dockerfile.

Terminal window
docker build -t safeparts-webui -f web/Dockerfile .
docker run --rm -p 8080:8080 safeparts-webui

Open http://localhost:8080.

Docs: http://localhost:8080/help/

This site lives in web/help/ and is served under /help/.

Terminal window
cd web/help
bun install
bun run dev

Open http://localhost:4321/help/.