pub fn version() -> Result<Version>
This is supported on crate feature version only.
Expand description

Parse rustc --version

Examples

let v = rustc::version().unwrap();
assert_eq!(v.tool_name, "rustc");