Installation
Get up and running with the MIND compiler toolchain.
Install a released binary (recommended)
Pre-built mindc binaries are published for Linux (x64 / arm64), macOS (x64 / arm64), and Windows (x64). The installer picks the right asset, verifies its SHA-256 against the published sidecar, and puts mindc on your PATH. No Rust toolchain is required and nothing is compiled locally.
curl -sSL https://mindlang.dev/install.sh | sh
Windows users run install.ps1 instead. The script honours three environment overrides:
MIND_INSTALL_DIR— target directory (defaults to/usr/local/bin, falling back to~/.local/bin)MIND_VERSION— pin a specific release tag (defaults to the latest release)MIND_DRY_RUN=1— print what would happen and write nothing
Prefer to download by hand? Every release asset ships a <asset>.sha256 sidecar so you can verify the checksum yourself before unpacking.
Prerequisites (building from source)
- Linux (x86_64) or macOS (Apple Silicon/Intel)
- Rust toolchain (stable channel required),
cmake, and a modern C/C++ toolchain
Ensure your Rust toolchain is up to date: rustup update stable
Build from source
The compiler and CLI live in the public star-ga/mind repository.
git clone https://github.com/star-ga/mind.git cd mind cargo build --bin mindc
Verifying the install
Confirm the binary runs and reports its component stability versions:
mindc --version mindc --help
--version prints the compiler version alongside the pinned core-IR version, so you can tell at a glance which IR contract a given build speaks.
Building from source instead? The equivalent is cargo run --bin mindc -- --help. Note that the full feature is not every feature — it omits std-surface and cross-module-imports, so a mindc built from it rejects programs that use the std surface or use std.foo imports. The feature set CI gates, and the one to use for real work, is:
cargo build --release --no-default-features \ --features "mlir-build std-surface cross-module-imports" --bin mindc