Skip to main content

Module package

Module package 

Source
Expand description

Versioned package metadata and manifest classification.

Structs§

PackageMetadata
Package metadata carried by mars.toml.

Enums§

ManifestClassification
The schema dispatch result for a package root’s optional mars.toml.

Constants§

SCHEMA_1_MARS_FLOOR
The first Mars release that reads schema 1. An older one reads a schema = 1 package as pre-v1, so a schema v1 package’s requires-mars may not admit one.

Functions§

classify_manifest
Classify manifest bytes before any package content is lifted or discovered.
parse_requirement
Parse a requires-mars or requires-meridian requirement. A bare version means >= it (0.19.0 is >=0.19.0), as mars.toml documents both fields.
requirement_has_floor
Whether requirement demands at least floor, so a Mars older than one floor cannot read the package. A range with no lower bound (<0.25) does not; an unparseable one cannot say.
requires_mars_floor_warning
The advice for a requirement that is missing or admits a Mars older than floor. None when it does not, or when it is not a requirement this Mars can read: a broken requirement is its own error.
schema_1_requires_mars_warning
The advice mars check prints for a schema v1 package’s requires-mars, which mars migrate prints with it when it leaves an authored requirement alone.