Skip to main content

cache_binary

Function cache_binary 

Source
pub fn cache_binary(source: &Path, hash: &str) -> Result<PathBuf, String>
Expand description

Copy a binary to the read-only cache directory (~/.clm/cache/bin/). Sets permissions to 0o555 on Unix. Returns the cached path.