# Build reference

Leilani builds all Cargo workspace members in release mode with a locked dependency graph. Commit Cargo.lock with your source. Builds use one Cargo job, release optimization level 3, LTO disabled, and 16 codegen units. Cargo dependencies and build output are cached between deployments.

Configure optional Cargo features in the [packages configuration](https://leilani.dev/docs/packages.md). Environment variables set in the console are supplied to launched packages, not the Cargo build process.
