pub fn preserve_executables(
project: &Project,
) -> Result<Vec<PreservedExecutable>>Expand description
Preserve compiled executables from a project’s build directory.
Copies executable files to <project_root>/bin/ before the build
directory is deleted. The behavior depends on the project type:
- Rust: copies executables from
target/release/andtarget/debug/ - Python: copies
.whlfiles fromdist/and.so/.pydextensions frombuild/ - Node / Go: no-op (their cleanable dirs are dependencies, not build outputs)
§Errors
Returns an error if creating destination directories or copying files fails.