write_asset

Function write_asset 

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

2026-09-26: Write a compiled-in asset into dir, but only when the bytes differ, so a provisioned script always matches the binary that ships it and an unchanged file keeps its mtime.

Returns true when the file was written.