Skip to main content

parse_zimagefile

Function parse_zimagefile 

Source
pub fn parse_zimagefile(content: &str) -> Result<ZImage>
Expand description

Parse and validate a ZImagefile from its YAML content.

This performs two phases:

  1. Deserialization — YAML string into ZImage via serde_yaml.
  2. Validation — semantic rules that serde annotations cannot enforce.

§Errors

Returns BuildError::ZImagefileParse for malformed YAML and BuildError::ZImagefileValidation for semantic rule violations.