Skip to main content

replace_binary

Function replace_binary 

Source
pub fn replace_binary(source: &Path, destination: &Path) -> Result<()>
Expand description

Swap source into destination without ever leaving a half-written executable in place: stage_binary then commit_binary.