Build from Source
This page is for contributors working in the core-next workspace.
Requirements
- Python
>=3.8 - Rust toolchain
maturin- Node.js
>=18if you want to run the docs site
Build the Rust library
From the repository root:
cargo build -p enki-next
cargo test -p enki-next
Before publishing the crate to crates.io, validate the package layout:
cargo package -p enki-next --allow-dirty
Build the Python package locally
From crates/bindings/enki-py:
pip install maturin
maturin develop
If you use the existing virtual environment in the crate, activate it first and run maturin develop there.
Build the JavaScript package locally
From crates/bindings/enki-js:
npm install
npm run build
This crate publishes the native Node.js package @getenki/ai via napi-rs.
Build the builder CLI
From the repository root:
cargo build -p builder
Run the CLI locally with:
cargo run -p builder -- --help
Run the docs site
From docs/enki-doc:
npm install
npm start
Build static docs
npm run build