quillmark-core 0.74.0

Core types and functionality for Quillmark
Documentation
1
2
3
4
5
6
7
8
9
10
//! Size and depth budget constants for document parsing.
//!
//! These constants govern the maximum sizes and counts accepted during parsing
//! to prevent denial-of-service via excessively large or deeply nested input.

/// Maximum YAML nesting depth (100 levels).
///
/// Prevents stack overflow from deeply nested YAML structures.
/// Enforced at the serde-saphyr parser level via [`serde_saphyr::Budget`].
pub const MAX_YAML_DEPTH: usize = 100;