Skip to main content

Module version

Module version 

Source
Expand description

Subset of Composer versioning needed by the platform check: numeric versions X[.Y[.Z[.W]]] with an optional stability suffix (-dev, -alpha.N, -beta.N, -RC.N, -patch.N), compared like composer/semver (4-component normalisation, dev < alpha < beta < RC < stable < patch). Branches (dev-master, 1.x-dev) are outside this subset: parse returns an error and the caller treats the package as out of scope rather than guessing.

Parity is held by the differential tests against Composer\Semver\Semver::satisfies (tests/oracle_semver.rs).

Structs§

UnsupportedVersion
Version

Enums§

Stability

Functions§

normalize_pretty
Composer’s “pretty -> normalized” normalisation (VersionParser::normalize), for the subset met in locks: numeric versions (-> 4 components + canonical suffix), dev-* branches (unchanged) and numeric branches N.x-dev (x -> 9999999, padded to 4 components). Parity held by tests/oracle_normalize.rs.