Skip to main content

Module updates

Module updates 

Source
Expand description

Lightweight update discovery and update commands.

Startup checks are deliberately best-effort: they run only for an interactive terminal, use a short timeout, and cache the result so a temporary registry outage never blocks the agent.

Structs§

UpdateNotice
UpdateReport

Functions§

check_startup
Perform a cached, best-effort check with Pi package discovery disabled.
check_startup_with_package_resources
Perform a cached, best-effort startup check.
is_newer
Compare the numeric semver components. Pre-release/build metadata are intentionally ignored because update notifications should be conservative.
print_startup_notices
run_self_update
Update the installed rpi CLI through its documented crates.io install path. Cargo remains responsible for selecting the target and replacing the executable atomically.