Expand description
Self-update logic: fetches the release feed and replaces the binary when a newer version exists.
Self-update logic for the abbaye self-update command.
Fetches the project’s Atom feed, finds the latest release version,
compares it against the running binary’s version, and – unless --check
was passed – downloads the appropriate pre-built binary and atomically
replaces the current executable.
Constants§
- BASE_
URL 🔒 - Root URL of the release site.
- CURRENT_
VERSION 🔒 - Version baked in at compile time (e.g.
0.5.1). - FEED_
URL 🔒 - Atom feed URL.
- TARGET 🔒
- Compile-time target triple (e.g.
x86_64-unknown-linux-musl).
Functions§
- parse_
versions_ 🔒from_ feed - Extract all semver-parseable versions from the
<title>elements inside<entry>blocks of an Atom feed. - self_
update - Check for a newer version and – unless
check_onlyistrue– download and atomically replace the running binary.