Skip to main content

Module version_check

Module version_check 

Source
Expand description

Background version check — queries GitHub releases for newer versions.

Checks are non-blocking, cached for 24 hours, and configurable via check_for_updates in settings.json.

Enums§

VersionCheckResult
Result of a version check.

Constants§

CURRENT_VERSION
Current crate version (from Cargo.toml).

Functions§

check_cached
Check the latest version from cache or return None if cache is stale/missing.
is_newer
Compare two semver-like version strings (e.g. “0.1.0” vs “0.2.0”).
parse_github_release_version
Parse the latest version from a GitHub releases API JSON response.
read_cached_version
Read a cached version if the cache is fresh (within TTL).
write_cached_version
Write a version to the cache file.