Skip to main content

MAX_DEPTH

Constant MAX_DEPTH 

const MAX_DEPTH: usize = 64;
Available on crate feature parse only.
Expand description

How deeply types may be nested before parsing fails.

The parser recurses for each level. The limit prevents stack overflows on hostile input.