Expand description
Versioned package metadata and manifest classification.
Structs§
- Package
Metadata - Package metadata carried by
mars.toml.
Enums§
- Manifest
Classification - 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 = 1package as pre-v1, so a schema v1 package’srequires-marsmay not admit one.
Functions§
- classify_
manifest - Classify manifest bytes before any package content is lifted or discovered.
- parse_
requirement - Parse a
requires-marsorrequires-meridianrequirement. A bare version means>=it (0.19.0is>=0.19.0), asmars.tomldocuments both fields. - requirement_
has_ floor - Whether
requirementdemands at leastfloor, 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.Nonewhen 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 checkprints for a schema v1 package’srequires-mars, whichmars migrateprints with it when it leaves an authored requirement alone.