Cambium

Documentation

Cambium Client

Building from Source

Everything is in one source download, cambium-source-<version>.zip, from the source page: the server, the desktop app, the CLI and the engine plugins. Work from the top folder of it.

Prerequisites

Rust 1.89 or newer, via rustup, for everything. For the desktop app, also Node.js 20 or newer, and:

OSAlso needsProduces
macOSXcode Command Line Tools (xcode-select --install).app and .dmg
WindowsMicrosoft C++ Build Tools ("Desktop development with C++"). WebView2 ships with Windows 10 and 11..exe installer

The desktop app is made for macOS and Windows. On Linux, Cambium is the command line.

The command-line client

None of the desktop app's tools are needed for the CLI, just Rust:

cd CambiumClient
cargo build --release -p cambium
./target/release/cambium --version

That binary is self-contained: put it anywhere on your PATH. If you copy it to someone else, the MIT LICENSE in CambiumClient/ goes with it.

The desktop app

The app carries its own copy of cambium, which it runs as its background service, so build the CLI for the same chip first and put it where the bundler looks. On an Apple Silicon Mac:

cd CambiumClient
cargo build --release -p cambium --target aarch64-apple-darwin
mkdir -p Source/Desktop/src-tauri/binaries
cp target/aarch64-apple-darwin/release/cambium \
   Source/Desktop/src-tauri/binaries/cambium-aarch64-apple-darwin
cd Source/Desktop
npm ci
npx tauri build --target aarch64-apple-darwin --config src-tauri/tauri.bundle.json

For an Intel Mac use x86_64-apple-darwin throughout, after rustup target add x86_64-apple-darwin. On Windows the target is x86_64-pc-windows-msvc, and the copy is named cambium-x86_64-pc-windows-msvc.exe.

The installer lands in CambiumClient/target/<target>/release/bundle/, under dmg/ or nsis/. It works without the engine plugins; the release builds add them, which needs the plugins built for each engine version first (see BuildScripts/README.md in the source).

The server

cd CambiumServer
cargo build --release
./target/release/cambium-server version

It builds on Linux, macOS and Windows. Run it in a folder of its own: it keeps its data in ./data and reads settings from ./cambium.env when there is one. The container image is built from BuildScripts/Server/Deploy/Dockerfile.

Reclaiming space

These are all made again by a build, so they are safe to delete when you are done: CambiumServer/target/ and CambiumClient/target/ (the big ones, several GB), CambiumClient/Source/Desktop/node_modules/ and CambiumClient/Source/Desktop/dist/.