rustc_version - crate for parsing rustc --version information


#1

https://crates.io/crates/rustc_version

This is motivated by me needing conditional compilation depending on rustc version.

The crate is mostly intended to be used in cargo build scripts, and offers easy access to the compiler version string parsed as a semver crate Version.

See also on reddit