Skip to main content

Module version

Module version 

Source
Expand description

SemVer pin classification and selection helpers.

A [deps.<name>] tag = "..." value in mlua-pkg.toml is interpreted in one of two ways:

  • Exact — a full SemVer string (v1.2.3, 1.0.0-rc1). The fetcher resolves it literally; mlua-pkg update leaves it alone unless --force is passed.
  • Prefix — a partial version (v1.0, v1). Both fetch and update resolve it to the SemVer-max matching release tag on the remote, so the manifest acts as a “follow latest patch / minor” specifier akin to Cargo ^X.Y ranges. The manifest is not rewritten on update.

Enums§

TagPin
Pin classification of a manifest tag value.

Functions§

classify_tag_pin
Classify a manifest tag string. Returns None for values that are neither full SemVer nor pure numeric prefixes (e.g. "latest", "feature-x"); such pins are skipped on update and rejected for auto-resolution on install.
pick_latest_for_pin
Pick the SemVer-max release tag from tags whose components match pin’s prefix. Pre-release tags are excluded. The original tag string is returned verbatim (preserving any v prefix) so that callers can use it directly as a git ref name.
pick_latest_overall
Pick the SemVer-max release tag overall. Pre-release tags are excluded.
strip_v_prefix
Strip a single leading v or V from s.