Skip to main content

Crate utz_build_cli

Crate utz_build_cli 

Source
Expand description

The μTZ asset-generation CLI, shipped as the utz_build_cli binary.

This crate is the command-line counterpart of a build.rs using utz_build::Config: it writes .utz assets for flash partitions, OTA images, and experiments, where a build script is the wrong shape.

utz_build_cli gen [ds] [epsilon_m] [--qbits 24] [--grid-deg 2]
    [--codec none|gzip|zstd|brotli|xz] [--algorithm rdp|vw|ii|none]
    [--geom varint-arcs|fixed-width-arcs|full-rings|coarse]
    [--w-min <mult>] [-o out.utz]
utz_build_cli gen-preset [tiny|tiny-static|compact|balanced|accurate]

cmd::generate is gen: it exposes every knob of utz_build::Config, one flag each. cmd::gen_preset drives the canonical utz_build::presets recipe table (every preset when the name is omitted), so preset assets regenerate from a single source of truth. The repo-internal measurement and viewer commands live in the (unpublished) utz_dev_cli crate.

Modules§

cmd
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).