pub fn write_versions( w: &mut dyn Write, versions: &HashMap<PkgName, Version>, ) -> Result<()>
Writes the versions to the writer.