Expand description
Script execution and sandbox configuration for Rattler-Build, supporting bash, cmd, python, and other interpreters.
This crate provides functionality for defining, parsing, and executing build scripts in various interpreters as part of the Rattler-Build process.
Execution model: every script runs through a platform-native wrapper (bash on Unix, cmd on Windows) that first performs prefix activation, then invokes the chosen interpreter. Inline or file-backed scripts for specialized interpreters (python, perl, etc.) are written out and executed by the activated wrapper.
Re-exports§
pub use sandbox::SandboxArguments;pub use sandbox::SandboxConfiguration;
Modules§
- sandbox
- Sandbox configuration for the build script
Structs§
- Execution
Args - Arguments for executing a script in a given interpreter.
- Runtime
Env - The environment rattler-build is running in: the process environment
variables (including
PATH) and the platform. - Script
- Defines the script to run to build the package.
Enums§
- Environment
Isolation - Controls how the build subprocess environment is constructed.
- Interpreter
Error - Describes interpreter execution and lookup errors.
- Resolved
Script Contents - The resolved contents of a script.
- Script
Content - Describes the contents of the script as defined in
Script.
Functions§
- closest_
interpreter - Returns the supported interpreter name most similar to
name, if it is similar enough — so typos get a suggestion, unrelated names do not. The comparison is case-insensitive. - create_
build_ script - Creates build script files without executing them.
- determine_
interpreter_ from_ path - Helper function to determine interpreter based on file extension
- platform_
script_ extensions - Returns the platform-appropriate script file extensions, in priority order.