Skip to main content

write_source_pack

Function write_source_pack 

Source
pub fn write_source_pack(output: &Path, imported: &ImportedPack) -> Result<()>
Expand description

Write an imported pack as a standalone source pack in output, which must be missing or empty: tuff-pack.toml, capabilities/<id>/ for each member, and extra/ for everything else. The folder is assembled in a temporary directory beside output and renamed into place.

ยงErrors

Returns an error for a non-empty output, an unsafe or duplicate path, or a failed write.