Skip to main content

Module budget

Module budget 

Source
Expand description

Streaming YAML budget checker using granit-parser.

This inspects the parser’s event stream and enforces simple budgets to avoid pathological inputs

Structs§

Budget
Resource budgets for YAML parsing and deserialization.
BudgetReport
Summary of the scan (even if no breach).

Enums§

BudgetBreach
What tripped the budget (if anything).
EnforcingPolicy
Scope over which YAML budget counters are enforced.

Functions§

check_yaml_budget
Check an input &str against the given Budget.
parse_yaml
Return true if the YAML exceeds any budget.