pub fn parse(
existing: Option<&str>,
project_root: &Path,
) -> Result<ContractsLock, String>Expand description
Read the lock’s pre-read content. None is a project that has none, which
accepts nothing. Some(text) that is empty, unparseable or of another
version is corruption and fails: a callee silently forgetting the callers
it accepts would answer them 409 in production.
project_root only names the file in a message.