Skip to main content

MAX_DEPTH

Constant MAX_DEPTH 

Source
pub const MAX_DEPTH: usize = 48;
Expand description

Nesting levels of the REDUCED tree, after macro expansion (the root = 1): every reduced tree stays inside serde_json’s 128-level recursion limit (2 JSON levels per node). The stack is never the bound: the recursive passes grow it on the heap (crate::roomy/crate::deep; tests/robustness.rs lays a 48-level surface out on a 128 KB thread).