Skip to main content

Module parser

Module parser 

Source
Expand description

Content parsing layer (L4).

This module provides parsers for different file formats:

  • Markdown (SKILL.md, CLAUDE.md, commands)
  • JSON (mcp.json, package.json, settings.json)
  • YAML (docker-compose.yml, subagent configs)
  • TOML (Cargo.toml, pyproject.toml)
  • Dockerfile

Each parser implements the ContentParser trait and extracts structured data for the detection engine (L5).

Re-exports§

pub use dockerfile::DockerfileParser;
pub use frontmatter::FrontmatterParser;
pub use json::JsonParser;
pub use markdown::MarkdownParser;
pub use toml::TomlParser;
pub use traits::ContentParser;
pub use traits::ContentType;
pub use traits::ParsedContent;
pub use yaml::YamlParser;

Modules§

dockerfile
Dockerfile content parser.
frontmatter
YAML frontmatter parser for markdown files.
json
JSON content parser.
markdown
Markdown content parser.
toml
TOML content parser.
traits
Parser traits for the content parsing layer (L4).
yaml
YAML content parser.

Structs§

ParserRegistry
Registry of all available parsers.