Skip to main content

attach_build_info

Function attach_build_info 

Source
pub fn attach_build_info(
    image: &[u8],
    info: &[u8],
) -> Result<Vec<u8>, FileError>
Expand description

Attach (or replace) a build-info section in a finished file image, returning the new image. Layout and hash semantics: plan_build_info.

Passing an empty info removes an existing section (or returns the image unchanged when there is none).