Skip to main content

Crate mbx_cache_cargo

Crate mbx_cache_cargo 

Source
Expand description

Cargo invocation resolution shared by mbx and embedded cache clients.

This crate is intentionally unstable while the first embedders converge. Breaking changes are made in a new pre-1.0 minor release.

Structs§

CargoInvocation
Cargo-resolved roots and the stable prediction-manifest identity for one invocation.

Functions§

build_identity
Derive the prediction-manifest identity used by mbx for a Cargo command.
cache_root
Resolve the shared mbx cache root from the environment, machine config, or platform default.
manifest_in_scope
Whether Cargo has a manifest to work from here.
previous_build_identities
The identities recorded for earlier states of this workspace’s Cargo.lock, newest first.
resolve
Resolve one Cargo invocation exactly enough for a cache session.
resolve_reported
Resolve one Cargo invocation only when Cargo successfully reports its roots.