Expand description
Simple library for getting the version information of a rustc
compiler in runtime.
The goal of this crate is to provide debug information to developers, not to branch application logic based on compiler version. Please, don’t do that.
§Example
extern crate rustc_version_runtime;
println!("This was compiled using {:?}", rustc_version_runtime::version());Structs§
- Version
- SemVer version as defined by https://semver.org.
- Version
Meta - Rustc version plus metadata like git short hash and build date.
Enums§
- Channel
- Release channel of the compiler.
Functions§
- version
- Returns the
rustcSemVer version. - version_
matches - Check wether the
rustcversion matches the given SemVer version requirement. - version_
meta - Returns the
rustcSemVer version and additional metadata like the git short hash and build date.