Skip to main content

extract_binary

Function extract_binary 

Source
pub fn extract_binary(tarball: &[u8], binary_name: &str) -> Result<Vec<u8>>
Expand description

Extract the binary from the tarball: find the single executable file, return its bytes (our tarballs contain <dir>/<binary>).