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.
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.
- Script
- Defines the script to run to build the package.
Enums§
- Environment
Isolation - Controls how the build subprocess environment is constructed.
- Interpreter
Error - The error type for the interpreter
- Resolved
Script Contents - The resolved contents of a script.
- Script
Content - Describes the contents of the script as defined in
Script.
Functions§
- create_
build_ script - Create 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.
- run_
process_ with_ replacements - Spawns a process and replaces the given strings in the output with the given replacements. This is used to replace the host prefix with $PREFIX and the build prefix with $BUILD_PREFIX
- run_
script - Run a script with the given execution arguments and interpreter