pub fn write_lockfile(path: &Path, lock: &Lockfile) -> Result<()>
Serializes lock to TOML and writes it to path, replacing any existing file. The written file carries the LOCKFILE_HEADER comment.
lock
path
LOCKFILE_HEADER