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 updateleaves it alone unless--forceis 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.Yranges. The manifest is not rewritten on update.
Enums§
- TagPin
- Pin classification of a manifest
tagvalue.
Functions§
- classify_
tag_ pin - Classify a manifest tag string. Returns
Nonefor 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
tagswhose components matchpin’s prefix. Pre-release tags are excluded. The original tag string is returned verbatim (preserving anyvprefix) 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
vorVfroms.