Skip to main content

preserve_executables

Function preserve_executables 

Source
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/ and target/debug/
  • Python: copies .whl files from dist/ and .so/.pyd extensions from build/
  • Node / Go: no-op (their cleanable dirs are dependencies, not build outputs)

§Errors

Returns an error if creating destination directories or copying files fails.