constructo_runtime/limits.rs
1//! The limits on what the runtime reads. The text that it parses may come from anywhere, so it is not trusted, and the
2//! recursive parser would otherwise grow its stack with the nesting of the input until the process crashed.
3//!
4//! `constructo` shows this limit with its own, in its module `limits`, so that they can all be seen together.
5
6/// The deepest nesting of values, and of types, in the text of a source, which keeps the stack of the recursive parser
7/// bounded. Each value is a level, a scalar included, so `[[1]]` is three levels deep.
8pub const MAX_DEPTH: u32 = 200;