Prerequisites

Install the Rust toolchain before building Kria.

Build from source

Development build

cargo build

Release build (recommended)

cargo build --release

The release binary is located at target/release/kria.

Run Kria

Interactive REPL

cargo run --release
# or
./target/release/kria

Start the REPL with no arguments. Variables and functions persist until you use :reset or :exit.

Run a source file

./target/release/kria test.krx
cargo run --release -- test.krx

Platform installation

Windows

Requires NSIS for the installer.

cargo build --release
cd release
makensis kria-setup.nsi
# Run release\kria-1.0.0-windows-x86_64-setup.exe

Linux / macOS

Install to ~/.kria/bin (add to your PATH if needed).

./release/build.sh install

Create a distributable archive:

./release/build.sh package
# Creates release/kria-<version>-<os>-<arch>.tar.gz

VS Code extension

Install the Kria VS Code extension for syntax highlighting, IntelliSense, and go-to-definition support.

After installation

kria test.krx

Source code and releases: kria-lang on GitHub.