cargo_lambda_build

Function zip_binary

Source
pub fn zip_binary<BP: AsRef<Path>, DD: AsRef<Path>>(
    binary_path: BP,
    destination_directory: DD,
    data: &BinaryData<'_>,
    include: Option<Vec<String>>,
) -> Result<BinaryArchive>
Expand description

Create a zip file from a function binary. The binary inside the zip file is called bootstrap for function binaries. The binary inside the zip file is called by its name, and put inside the extensions directory, for extension binaries.