pub fn parse(
text: &str,
format: &LockFileFormat,
) -> Result<ParsedLockFile, SpecError>Expand description
Parse a flake.lock JSON payload against a format spec.
§Errors
lockfile-parsefor malformed JSON.lockfile-version-mismatchif the file’sversionfield doesn’t match the spec’s declared version.lockfile-missing-requiredif a Required field is absent.