Skip to main content

Crate rattler_build_recipe

Crate rattler_build_recipe 

Source
Expand description

Recipe data model and parsing for rattler-build, including multi-stage evaluation and variant rendering.

Re-exports§

pub use stage0::Stage0Recipe;
pub use stage1::Evaluate;
pub use stage1::EvaluationContext;
pub use stage1::Recipe as Stage1Recipe;
pub use variant_render::RenderConfig;
pub use variant_render::RenderError;
pub use variant_render::RenderedVariant;
pub use variant_render::TopologicalSortError;
pub use variant_render::render_recipe_with_variant_config;
pub use variant_render::topological_sort_by_dependencies;
pub use variant_render::render_recipe_with_variants;

Modules§

error
Error types for recipe parsing
source_code
Source code tracking for error reporting with miette
stage0
The stage0 recipe that contains the un-evaluated recipe information. This means, it still contains Jinja templates and if-else statements.
stage1
Stage 1: Evaluated recipe with all templates and conditionals resolved
variant_render
Variant-based recipe rendering

Structs§

Span
The span for a YAML marked node
WithSourceCode
Generic wrapper that combines an error with source code for better miette diagnostics.

Enums§

ParseError
Errors that can occur during YAML parsing

Functions§

parse_recipe
Parse a recipe from source, returning errors with source code attached for diagnostics.
parse_recipe_with_config
Parse a recipe from source with explicit parser configuration.
render_recipe
Render a recipe with variant config, returning errors with source code attached.

Type Aliases§

ParseErrorWithSource
Convenience type alias for a ParseError wrapped with source code.
ParseResult
Result type for parsing operations
RenderErrorWithSource
Convenience type alias for a RenderError wrapped with source code.