Skip to main content

Module update

Module update 

Source

Enums§

InstallKind

Constants§

DEFAULT_RELEASE_API

Functions§

asset_names
Archive and checksum asset names for a tag and triple. Must match the archive: pattern in .github/workflows/release.yml, which is bbcloud-$tag-$target; cargo-binstall’s default templates key off the crate name, which is why the prefix is bbcloud and not the binary name.
classify_install
Decides who owns the binary at exe from its path alone. Overwriting a package-manager-owned file would leave brew or cargo believing it manages a file it no longer controls, so those cases delegate instead.
current_triple
The target triple of the running binary, or None on a platform this project does not publish binaries for.
is_newer
True only when both versions parse and latest is strictly greater. An unparseable remote tag is never an upgrade, so a malformed API response cannot trigger a download.
latest_tag
The tag of the newest published release, e.g. v0.19.4.
parse_version
Parses 1.2.3 or v1.2.3. Returns None for anything else, including four-component versions and pre-release suffixes.
release_api_base
run
upgrade_hint
The command that upgrades an install of this kind. A standalone install is the only one bb can replace itself, so it is the only one pointed back at bb update; the package-manager cases must go through their own manager or brew and cargo would keep believing they manage a file they no longer wrote.