Getting started
Requirements
- mise for the pinned Node.js, pnpm, Rust, Python, uv, and wasm-pack toolchains
The workspace uses Rust edition 2024 and Apache-2.0.
Clone and build (Rust)
bash
git clone https://github.com/yetanother.ai/xlai.git
cd xlai
mise install
cargo build --workspaceTests
bash
cargo test --workspaceCheck wasm32
bash
cargo check -p xlai-wasm --target wasm32-unknown-unknown --features qtsJavaScript workspace
From the repository root:
bash
pnpm install
pnpm --filter @yai-xlai/xlai build
pnpm --filter @yai-xlai/xlai testLinting (Rust)
bash
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all -- --checkDocumentation site
To work on this site locally:
bash
pnpm docs:devBuild static output:
bash
pnpm docs:buildOutput is written to docs/.vitepress/dist.