Build the Lema tools from source
Build matching CLI and VM binaries when you are working on the Lema implementation.
This is the contributor route for an authorized source checkout. To write Lema applications, use the prebuilt installation; it does not require repository access, Rust or a C linker.
Build the matching tools
Follow the checkout’s AGENTS.md and README for its current pins and acceptance checks. The source uses rustup with Rust 1.98.0 and needs Git and a C linker. macOS source builds need the Xcode Command Line Tools. Run from the checkout:
cargo build --release -p lema-cli -p lema-vm-runner
export PATH="$PWD/target/release:$PATH"
lema --version
lema build-info --check-worker
lema setupBuild both binaries from the same source state. A source build identifies itself as a development build; it is not a public release merely because a Cargo package version matches. Setup uses the pinned platform toolchain and library pack. If your source changes make that pack incompatible, it refuses normal setup; use an appropriate matching pack or deliberately choose slower local checking with lema setup --no-pack.
Keep application projects outside the source checkout. Run the repository checks covers the plain test tier and explicitly selected native suites. Public release packaging, signing and publication are separate operator steps; a local build is not evidence that a release is qualified.
Lema v0.3.2 · Updated 29 October 2026 · Version and compatibility