pub fn missing_headers<'a>(
root: &Path,
headers: &'a [(&'a str, &'a str)],
) -> Vec<&'a (&'a str, &'a str)>Expand description
Vendor headers that are absent, as (header, package) pairs.
A header counts as present if it is under <root>/include OR any
default system include dir, because that is what the compiler will
do. Header paths in the tables are relative to an include dir, with
no include/ prefix, precisely so both can be searched.
Pure: the toolkit root is a parameter rather than an env read, so every arm is testable without mutating process-global state. This crate’s test binary runs in parallel and an env-mutating test only works if every reader takes the same lock, which they do not.