Skip to main content

Module parser

Module parser 

Source
Expand description

YAML front matter parsing.

Parses and serializes YAML front matter in memory content. Front matter format:

---
namespace: decisions
domain: org/repo
tags: [rust, architecture]
---
The actual memory content here.

§Security

This module includes protections against YAML-based attacks:

  • Size limits: Front matter limited to 64KB to prevent memory exhaustion
  • Billion laughs: Entity expansion limited by serde_yaml_ng’s safe defaults

Structs§

YamlFrontMatterParser
Parser for YAML front matter in memory content.

Constants§

MAX_FRONT_MATTER_SIZE 🔒
Maximum allowed size for YAML front matter (64KB). Prevents memory exhaustion from maliciously large front matter.