pub const MAX_DEPTH: usize = 64;Expand description
How deep a form may nest.
A form is a screen. Anything approaching this is a generated file or a malicious one.
This is checked before the file reaches the parser, and that is not
belt-and-braces: kdl is a recursive-descent parser and overflows the stack
on a few hundred nested nodes, which a Result cannot catch and a panic
handler cannot either. A form arrives from a designer, a clipboard or a
download, so bounding it is this crate’s job and not its caller’s.