rustc_version_runtime

Crates.iorustc_version_runtime
lib.rsrustc_version_runtime
version0.3.0
sourcesrc
created_at2015-08-24 02:52:47.781647
updated_at2023-10-25 13:28:58.663604
descriptionA library for querying the version of the rustc compiler used in runtime
homepage
repositoryhttps://github.com/seppo0010/rustc-version-runtime-rs
max_upload_size
id2908
size8,701
Sebastian Waisbrot (seppo0010)

documentation

http://seppo0010.github.io/rustc-version-runtime-rs/rustc_version_runtime/index.html

README

rustc-version-runtime-rs

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.

Getting Started

rustc-version-runtime-rs is available on crates.io. Add the following dependency to your Cargo manifest:

[dependencies]
rustc_version_runtime = "0.1.*"

Example

extern crate rustc_version_runtime;
use rustc_version_runtime::version;

println!("This was compiled using {:?}", version());
Commit count: 22

cargo fmt