Skip to main content

Crate composer_wire

Crate composer_wire 

Source
Expand description

The Composer v2 repository wire format — the metadata documents a Composer 2 client and a Composer repository exchange.

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 root packages.json (RootManifest).
minify
The Composer v2 “minified” repository-metadata algorithm.