Skip to main content

apply_file_patch

Function apply_file_patch 

Source
pub async fn apply_file_patch(
    pkg_path: &Path,
    file_name: &str,
    patched_content: &[u8],
    expected_hash: &str,
) -> Result<(), Error>
Expand description

Apply a patch to a single file. Writes the patched content and verifies the resulting hash.