Skip to content

Local Development

If you want to work on ado-aw itself, a local Rust-based development setup is enough for most compiler and documentation tasks.

  • Rust 1.94.0 or later (the project uses the Rust 2024 edition)
  • Git
  • An editor of your choice

Install or update Rust:

Terminal window
rustup toolchain install stable
rustup default stable
rustc --version # must be 1.94.0 or later

From the repository root:

Terminal window
cargo build

For an optimized build:

Terminal window
cargo build --release

Use the standard Rust workflow while developing:

Terminal window
cargo test
cargo clippy

These commands help catch regressions and style issues before you commit changes.

A simple way to validate changes is to compile an example or your own agent file.

Terminal window
cargo run -- compile path/to/agent.md

To verify the generated YAML matches the source definition:

Terminal window
cargo run -- check path/to/agent.lock.yml

Iterate on documentation or compiler changes

Section titled “Iterate on documentation or compiler changes”

A common local loop looks like this:

Terminal window
cargo build
cargo test
cargo run -- compile path/to/agent.md
cargo run -- check path/to/agent.lock.yml

If you are working on the docs site itself, run the site from site/ with your usual Astro workflow after installing dependencies.

  • the project builds successfully
  • tests pass
  • your sample pipeline compiles cleanly
  • generated YAML matches the markdown source when checked