PARSE_DEPTH_CAP

Constant PARSE_DEPTH_CAP 

Source
pub const PARSE_DEPTH_CAP: usize = 512;
Expand description

Maximum brace-nesting depth the scanner will track before aborting (parser-DoS cap). A query this deep is either hostile or malformed; the scanner stops counting and the check fails closed (denied as depth exceeded). This is NOT the user-configured depth_limit – it is a hard internal bound on the scanner itself.