pub fn has_matching_version(content: &str, expected: u32) -> boolExpand description
Look for a # version: N line near the top of a cache file and return
true if it parses to exactly expected. Older caches without the line,
caches with a newer/older N, and malformed lines all return false so
the caller can silently regenerate. Stops scanning at the first non-comment
line to keep the cost bounded.