Skip to main content

workspace_metadata

Function workspace_metadata 

Source
pub fn workspace_metadata(root: &Path) -> Result<String, String>
Expand description

Runs cargo metadata --no-deps --format-version 1 in root and returns its JSON, for feeding to blast_radius.

Shells out rather than linking a manifest parser, the same posture the workspace takes with curl, openssl, and mergiraf. --no-deps keeps it offline: registry packages are never resolved.

ยงErrors

Returns a description if cargo cannot be spawned or exits nonzero.