Skip to main content

parse_release_notes

Function parse_release_notes 

Source
pub fn parse_release_notes(version: &str, notes: &str) -> ParsedRelease
Expand description

Parse release notes and extract structured information

ยงExamples

let notes = "Rust 1.70.0\n\nSecurity:\n- Fixed CVE-2023-1234 buffer overflow\n\nBreaking Changes:\n- Deprecated old API";
let parsed = parse_release_notes("1.70.0", notes);
assert_eq!(parsed.version, "1.70.0");
assert!(!parsed.security_advisories.is_empty());