Expand description
The Composer v2 repository wire format — the metadata documents a Composer 2 client and a Composer repository exchange.
PackageDocument/RootManifest— thep2/*.jsonand rootpackages.jsondocument types (thedocumentmodule).expand_versions/minify_versions— thecomposer/2.0minified-metadata algorithm and its exact inverse (theminifymodule).
A client parses and expands upstream metadata; a server builds and
minifies metadata to serve. Sharing one implementation means the
producer and consumer of the wire format can’t drift:
expand_versions(minify_versions(v)) == v.
Part of the composer-rs workspace; extracted from bougie’s
bougie-composer.
Re-exports§
pub use document::PackageDocument;pub use document::RootManifest;pub use minify::MINIFIED_MARKER;pub use minify::UNSET;pub use minify::expand_versions;pub use minify::minify_versions;
Modules§
- document
- Composer v2 repository wire documents: the per-package
p2/*.json(PackageDocument) and the rootpackages.json(RootManifest). - minify
- The Composer v2 “minified” repository-metadata algorithm.