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.

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§

ExecutionArgs
Arguments for executing a script in a given interpreter.
RuntimeEnv
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§

EnvironmentIsolation
Controls how the build subprocess environment is constructed.
InterpreterError
Describes interpreter execution and lookup errors.
ResolvedScriptContents
The resolved contents of a script.
ScriptContent
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.