Building Locally


  • Docker or Podman (note: unit tests run with Podman by default)
    • If using docker - make sure it’s usable without sudo
    • If using podman - make sure it’s setup to run root-less containers
  • Rust toolset
    • Install rustup
    • When running cargo in the repository it will detect and download the right toolchain version based on the rust-toolchain file
  • AWS account and configured AWS CLI (optional, needed for S3 volumes)

Clone the repository:

git clone

Build it and run tests:

cd kamu-cli
cargo build
cargo test

To use your locally-built kamu executable link it as so:

sudo ln -s $PWD/target/debug/kamu /usr/bin/kamu

Build Speed Tweaks (Optional)

Consider configuring Rust to use lld linker, which is much faster than the default ld (may improve link times by ~10-20x).

To do so install lld, then create ~/.cargo/config.toml file with the following contents:

rustflags = ["-C", "link-arg=-fuse-ld=lld"]

Building with Web UI (Optional)

To build the tool with embedded Web UI you will need to clone and build kamu-web-ui repo or use pre-built release. Now build the tool while enabling the optional feature and passing the location of the web root directory:

KAMU_WEB_UI_DIR=`pwd`/../kamu-web-ui/dist/kamu-platform/ cargo build --features kamu-cli/web-ui

Note: KAMU_WEB_UI_DIR requires absolute path

Note: in debug mode the directory content is not actually being embedded into the executable but accessed from the specified directory.

Release Procedure

  1. While on the feature branch, bump the crates versions using release tool, e.g. cargo run --bin release -- --major / --minor / --patch
  2. Create a CHANGELOG entry for the new version
  3. Create PR, wait for tests, then merge
  4. Checkout and pull master
  5. Tag the latest commit with a new version: git tag vX.Y.Z
  6. Push the tag to repo: git push origin tag vX.Y.Z
  7. Github Actions will pick up the new tag and create a new GitHub release from it