Skip to main content

write_package

Function write_package 

Source
pub fn write_package(files: &[PackagedFile]) -> Result<()>
Expand description

Write a rendered package to disk: create parent directories, write every FileContent::Text verbatim, and copy every FileContent::Copy native binary into place.

§Errors

Returns an error if a parent directory cannot be created, a text file cannot be written, or a bundled binary’s source path cannot be read or copied.