pub fn snapshot_wrapper_executable(
source_exclusion: &Path,
snapshot_root: &Path,
source: &Path,
) -> Result<PathBuf, FinalCargoError>Expand description
Publish the exact wrapper bytes into the generated-output CAS before Cargo is allowed to reopen an executable path.
This uses the same lstat, one-open-file copy, relocation/dependency check, atomic publication, and existing-entry verification contract as final executable snapshots. The returned path is content addressed and can therefore be bound into the linked invocation identity without trusting the caller’s mutable pathname.