Skip to main content

parse_sources

Function parse_sources 

Source
pub fn parse_sources(
    tree_yaml: &str,
    claims_md: Option<&str>,
) -> Result<(Manifest, ParseReport), ParseReport>
Expand description

Parses in-memory sources into a Manifest. Pure and wasm-safe.

claims_md = None means claim references cannot be resolved: each C## evidence reference becomes an unresolved-binding warning (not an error), and no bindings are produced.

Returns Ok((manifest, report)) when there are no errors (the report may still carry warnings that callers must surface), or Err(report) otherwise.