mise.toml

[tools]
rust = { version = "1.99.1", components = "rustfmt,clippy", mr_boxington = true }
mr-boxington = "1.30.0"
cargo-deny = "0.20.2"
lefthook = "2.2.2"
jactionlint = "2.5.0"
ruff = "0.17.6"
ty = "0.0.113"
"aqua:Kitware/CMake" = "4.5.0"
node = "26.13.1"
uv = "0.13.9"

[env]
CARGO_BUILD_JOBS = "6"
CMAKE_BUILD_PARALLEL_LEVEL = "6"

[tasks.docs]
description = "Build the documentation site into site/"
dir = "website"
run = """
npm ci
npm run build
"""

[tasks.wheels]
description = "Build the sdist and the Linux wheels into dist/, and the macOS wheels on a Mac"
run = """
architectures="{{ read_json(path=".github/wheel-platforms.json") | join(sep=" ") }}"
for arch in $architectures; do
  rustup target add "$arch-unknown-linux-gnu" "$arch-unknown-linux-musl"
done
rm -rf dist
uvx maturin sdist --out dist
build() { uvx --with ziglang maturin build --release --zig --out dist "$@"; }
for arch in $architectures; do
  build --compatibility manylinux2014 --target "$arch-unknown-linux-gnu"
done
for arch in $architectures; do
  build --compatibility musllinux_1_2 --target "$arch-unknown-linux-musl"
done
if [ "$(uname)" = Darwin ]; then
  rustup target add aarch64-apple-darwin
  build --target aarch64-apple-darwin
fi
ls dist
"""