Skip to main content

Module limits

Module limits 

Source
Expand description

Configurable resource limits for markdown parsing and extraction.

All limits have secure defaults. Callers may lower any limit freely; raising a limit above the secure default requires the explicit with_* builders so accidental unbounded parsing cannot happen silently.

Structs§

AstStats
A single AST node/depth measurement result.
ParseLimits
Configurable parsing limits with secure defaults.

Enums§

LimitKind
Which resource limit was exceeded.
ParseLimitsError
Error produced while validating pre-parse limits.

Functions§

measure_ast
Compute node count and maximum nesting depth with checked arithmetic.