Skip to main content

DEFAULT_MAX_COMPOSITE_DEPTH

Constant DEFAULT_MAX_COMPOSITE_DEPTH 

Source
pub const DEFAULT_MAX_COMPOSITE_DEPTH: usize = 64;
Expand description

Default maximum composite nesting depth.

A composite member may itself be a composite (ADR-027 § Binding). This bounds the recursion so a maliciously deep composite on an untrusted stream cannot exhaust the stack. Matches the format’s rank cap of 64 in spirit.