maxNestingDepth top-level constant
int
const maxNestingDepth
The deepest nesting of maps and lists a consumed document may have, the document itself counting as one level. The same figure as the recursion limit of serde_json, which trust-tasks-rs parses documents with.
canonicalJson and the other walks of a document recurse, so a document
nested far deeper — a 200 KB body can hold 100,000 levels — would exhaust
the stack. consumeInbound and parseTrustTaskDocument refuse such a
document malformedRequest first.
Implementation
const int maxNestingDepth = 128;