pub const MAX_FORMAT_STRING_SEGMENTS: usize = 1_000;Expand description
Maximum number of {{...}} interpolation segments in a single format string.
Each segment triggers a full ruff parse and an allocation of a
ParsedExpression. Thousands of segments in one template field indicate
abuse; 1,000 is two orders of magnitude above any realistic usage.
See specs/expr/format-string.md (Defensive caps) for rationale.