create_binary_archive

Function create_binary_archive 

Source
pub fn create_binary_archive<P>(
    metadata: Option<&CargoMetadata>,
    base_dir: &Option<P>,
    data: &BinaryData<'_>,
    include: Option<Vec<String>>,
) -> Result<BinaryArchive>
where P: AsRef<Path>,
Expand description

Search for the binary file for a function or extension inside the target directory. If the binary file exists, it creates the zip archive and extracts its architecture by reading the binary. If the zip file already exists, use it as the deployment archive. If none of them exist, return an error.