Skip to main content

embed_libs_in_binary

Function embed_libs_in_binary 

Source
pub fn embed_libs_in_binary(
    binary_path: &Path,
    staging_dir: &Path,
) -> Result<()>
Expand description

Append compressed runtime libraries to a packed binary.

Call this AFTER code signing — the SMOLLIBS footer must be the last bytes of the file so extract_libs_from_binary() can find it.