Add build info to firmware and CLI, bump version to 0.2.0 #3
Loading…
Reference in a new issue
No description provided.
Delete branch "esp-idf-5.5.6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds build info to the firmware and the
irbtCLI and bumps the version to 0.2.0 (taggedv0.2.0).What's new
0.2.0 (v0.2.0 2026-10-28), following the format ofrustc -V. Untagged commits show asv0.2.0-1-gabc1234,-dirtymarks uncommitted changes, andunknownis shown when built outside git.irbt statusnow shows the firmware's commit, its rustc (esp toolchain), the ESP-IDF version read at runtime, and the versions ofesp-idf-svc/-hal/-sys,esp32-nimbleandembassy-time. With--json, these appear under a new"build"key.irbt -Vshows the CLI's commit, andirbt --versionadds rustc, the protocol version and the versions of key dependencies.How
build-infocrate is used as a build-dependency by the firmware and the CLI. It embedsgit describe+ the commit date,$RUSTC -Vand selectedCargo.lockversions at compile time. It reruns when HEAD, the index, refs (includingrefs/tags) or the sources change.Command::GetBuildInfo/Reply::BuildInfopair is appended at the end of the enums. Existing encodings don't change, soPROTOCOL_VERSIONstays at 1, and a golden test pins the new command's encoding.DeviceInfo.firmware_versionnow includes the commit, so older CLIs see it too.Testing
cargo test --workspaceand clippy (-D warnings) pass on the host workspace and the firmware. The firmware release build passes.irbt -V/--version.irbt statusagainst a flashed board.🤖 Generated with Claude Code