Skip to main content

write_project_file

Function write_project_file 

Source
pub fn write_project_file(dir: &Path, meta: &ProjectMeta) -> Result<()>
Expand description

Write a .project.toml into a directory.

Creates the directory and all parent directories if they don’t exist. The file is written atomically by first writing to a temporary name and then renaming, preventing readers from seeing a partially-written file.