Skip to main content

Module cmd

Module cmd 

Source
Expand description

Each utz_build_cli subcommand gets one module here, named after it. Each module exposes Args (clap; the field docs are the --help text) and run(Args).

Modules§

gen_preset
Generates one preset asset, or every preset, from the canonical recipe table. The command drives utz_build::Config::from() over utz_build::presets, so the recipes exist in exactly one place and scripts/gen-presets.sh cannot drift from the table (the data crates’ build.rs recipe guards verify the result).
generate
Encodes an asset to disk from explicit knobs. The asset is the input for utz_bench_cli, the embedded bench firmware (which embeds an uncompressed asset and borrows it zero-copy from flash via Finder::from_static()), and any flash-partition/OTA image. Every flag maps to one utz_build::Config knob.