Skip to main content

parse_ar_version_output

Function parse_ar_version_output 

Source
pub fn parse_ar_version_output(text: &str) -> ArchiverIdentity
Expand description

Pure parser for archiver --version output. The recognized families (ar and llvm-ar) print one line that includes the family name. Anything else is classified as ArchiverKind::Unknown; archivers that exit non-zero on --version are left to the subprocess layer to surface as Unknown.