pub fn write_manifest(data_dir: &Path, manifest: &Manifest) -> Result<PathBuf>Expand description
Writes <data>/manifest.json through a temp file renamed over it in the same
directory, so a crash or a full disk leaves the previous manifest whole and
a reloading server never reads half a file.