Skip to main content

extract_worker

Function extract_worker 

Source
pub fn extract_worker(script_dir: &Path) -> Result<PathBuf>
Expand description

Extract the worker script into script_dir, creating the dir if needed and rewriting the file only when its content hash differs from the embedded source. Returns the script path.