pub const MAX_WALK_DEPTH: usize = 64;Expand description
Hard cap on recursion depth in walk. Object and array
children past this depth are skipped and a single
[tracing::warn!] fires. Serde_json’s default parser recursion
limit is 128, so this caps us well below that; a hand-built
serde_json::Value that bypasses the parser can still reach
arbitrary depth, so an explicit walker guard is the last line of
defence against a stack overflow.
See walk_json_leaves’s stability contract — the concrete
value may change across ktstr pre-1.0 versions.