Skip to main content

parse_file_with_trust

Function parse_file_with_trust 

Source
pub fn parse_file_with_trust(
    path: &Path,
    options: ParseOptions,
    trusted: &TrustedKeys,
) -> Result<Module, Vec<Diagnostic>>
Expand description

Parse a file with overlay enforcement (C-052): identical to parse_file, but every include must carry a valid sibling signature from trusted (E032 otherwise). Use with --trust-keys; without it, parse_file preserves legacy behavior exactly.