write_asset_bytes

Function write_asset_bytes 

Source
pub fn write_asset_bytes(
    dir: &Path,
    name: &str,
    contents: &[u8],
) -> Result<bool>
Expand description

2026-09-26: write_asset for assets that are not text: the same compare-then-write contract, over bytes. The comparison reads bytes because read_to_string fails on non-UTF-8 files and would make every binary asset look changed.