Rust programming

Navigator is a Rust workspace. This page is the common Rust reference for agents and humans; use the official Rust sources below when language behavior matters.

Canonical language references:

Workspace defaults

Error handling

Types and modules

Async and concurrency

Inside Restate handlers, the rules are stricter: do not use native concurrency for journaled work. See agent-workflows.md and durable-workflows.md.

Axum

SeaORM and Postgres

Service lifecycle

Testing

Dependencies and assets

Before committing Rust

cargo fmt
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace

Run narrower tests while iterating, but report the exact gate you actually ran.