Skip to main content

ailint_core/parser/
yaml.rs

1//! YAML parsing for guidance files that store rules as YAML
2//! (e.g. Cursor rules, Windsurf rules).
3
4use anyhow::Result;
5
6/// Parse a YAML string into a generic `serde_yaml::Value`.
7pub fn parse(input: &str) -> Result<serde_yaml::Value> {
8    Ok(serde_yaml::from_str(input)?)
9}