Skip to main content

Crate rattler_build_script

Crate rattler_build_script 

Source
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§

ExecutionArgs
Arguments for executing a script in a given interpreter.
Script
Defines the script to run to build the package.

Enums§

EnvironmentIsolation
Controls how the build subprocess environment is constructed.
InterpreterError
The error type for the interpreter
ResolvedScriptContents
The resolved contents of a script.
ScriptContent
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