Helper utility for building and flashing ESP32 app crates under apps/. This
crate is not published to crates.io.
xtask resolves a short target name (or .rs path) to a Cargo binary, injects
the Xtensa target and linker flags, and runs the build through the ESP toolchain.
Run from the repo root:
cargo xtask run ex-smoltcp
cargo xtask build qa-runnerDebug build:
cargo xtask run ex-embassy-net --debugPass args to the target:
cargo xtask run ex-esp-hal -- --extra-arg| Target | Resolves To |
|---|---|
qa-runner, qa |
apps/qa-runner/qa_runner.rs |
ex-esp-hal |
apps/examples/esp_hal_integration.rs |
ex-esp-hal-async |
apps/examples/esp_hal_async.rs |
ex-smoltcp |
apps/examples/smoltcp_echo.rs |
ex-embassy, ex-embassy-net |
apps/examples/embassy_net.rs |
- If no command is supplied,
buildis assumed. --debugselects a debug build (release is the default).--passes arguments to the target binary.ESP_LOG,ESP_IDF_VERSION, andCARGO_TARGET_DIRare defaulted if unset.