#version #rustc

rustc_version_runtime

A library for querying the version of the rustc compiler used in runtime

4 releases

0.1.5 Oct 19, 2018
0.1.4 Oct 19, 2018
0.1.3 Jan 7, 2017
0.1.0 Aug 24, 2015

#347 in Development tools

Download history 1085/week @ 2019-12-10 1305/week @ 2019-12-17 1166/week @ 2019-12-24 754/week @ 2019-12-31 1213/week @ 2020-01-07 904/week @ 2020-01-14 1379/week @ 2020-01-21 2891/week @ 2020-01-28 2634/week @ 2020-02-04 1817/week @ 2020-02-11 1893/week @ 2020-02-18 2201/week @ 2020-02-25 1654/week @ 2020-03-03 2621/week @ 2020-03-10 1895/week @ 2020-03-17 1283/week @ 2020-03-24

5,927 downloads per month
Used in 27 crates (5 directly)

MIT license

7KB
90 lines

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());

lib.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.

Example

extern crate rustc_version_runtime;

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

Dependencies

~120KB