Skip to main content

MAX_DSL_DEPTH

Constant MAX_DSL_DEPTH 

Source
pub const MAX_DSL_DEPTH: usize = 32;
Expand description

Maximum nesting depth for recursive DSL constructs (and/or/not). Limits stack-overflow DoS via adversarial inputs. 32 is generous (allows and(and(and(...))) 32 levels deep) and small enough to keep Rust stack usage bounded.