Skip to content
Skip to Content

Install from source

Build the cohortix engine from its repository with the pinned Rust toolchain.

Version 0.1 has no published release archive yet, so the engine is built from source. You need git and rustup.

Build

The Rust toolchain is pinned in rust-toolchain.toml (channel 1.100.1, with rustfmt and clippy). With rustup installed, the first cargo command in the repository downloads and selects it.

Terminal
git clone https://github.com/cohortix-org/cohortix.git
cd cohortix
cargo build --workspace --locked

The build produces three programs:

ProgramWhat it does
cohortixRuns a scenario file.
chxA short alias of cohortix: the same code, identical behaviour.
cohortix-dataThe data pipeline: prepares normalized tables and the data manifest a scenario reads.

Check the build

Terminal
cargo run -p cohortix-cli --bin cohortix -- --version
cargo run -p cohortix-cli --bin cohortix -- --version --json

--version prints the version line; with --json it adds the commit, the compiler and the build target as one JSON object. These are the same values the engine records in the provenance of every run.

Run the tests

Terminal
cargo test --workspace --locked

Release archives

From the first release tag, each release ships one archive per tier-1 target (Windows x86-64, Linux x86-64 and ARM64, macOS ARM64 and x86-64), each holding cohortix, chx, cohortix-data and both licence files, plus a BLAKE3 checksum file. Check a download with:

Terminal
b3sum --check cohortix-<version>-checksums.b3

Linux binaries are statically linked (musl) and Windows binaries link the C runtime statically, so an archive runs without installing anything else.

Next: run the example scenario.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.