Skip to main content

parse

Function parse 

Source
pub fn parse(root: &Path) -> Result<Manifest>
Expand description

Parse the Cargo workspace (or single-crate repo) rooted at root into a typed Manifest. Reads <root>/Cargo.toml, every member crate’s Cargo.toml, and (if present) <root>/Cargo.lock.

§Errors

Returns a typed CargoError for IO failures, TOML parse errors, missing workspace members, or malformed version requirements.