pub fn parse(content: &str, format: LockfileFormat) -> ParseResultExpand description
Parse a lockfile’s content given an already-known format.
Individual malformed entries become ParseWarnings; the returned
ParseResult still contains the successfully extracted deps. A fatal
error (e.g. invalid TOML/JSON) causes a panic-free empty result with a
single warning. Use detect_and_parse if you want a Result on
structural failures instead.