Crate rustc_version_runtime[−][src]
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
Represents a version number conforming to the semantic versioning scheme.
Rustc version plus metada like git short hash and build date.
Enums
Release channel of the compiler.
An identifier in the pre-release or build metadata.
Functions
Returns the rustc
SemVer version.
Check wether the rustc
version matches the given SemVer
version requirement.
Returns the rustc
SemVer version and additional metadata
like the git short hash and build date.