Skip to main content

Module updater

Module updater 

Source
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_only is true – download and atomically replace the running binary.