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
- With
Source Code - Generic wrapper that combines an error with source code for better miette diagnostics.
Enums§
- Parse
Error - 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§
- Parse
Error With Source - Convenience type alias for a
ParseErrorwrapped with source code. - Parse
Result - Result type for parsing operations
- Render
Error With Source - Convenience type alias for a
RenderErrorwrapped with source code.