#version #rustc

rustc_version_runtime

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

5 releases

Uses old Rust 2015

0.2.0 Jul 12, 2020
0.1.5 Oct 19, 2018
0.1.4 Oct 19, 2018
0.1.3 Jan 7, 2017
0.1.0 Aug 24, 2015

#580 in Development tools

Download history 1160/week @ 2021-06-27 2296/week @ 2021-07-04 1904/week @ 2021-07-11 1928/week @ 2021-07-18 1859/week @ 2021-07-25 1309/week @ 2021-08-01 1969/week @ 2021-08-08 1670/week @ 2021-08-15 1630/week @ 2021-08-22 1645/week @ 2021-08-29 1917/week @ 2021-09-05 2326/week @ 2021-09-12 2278/week @ 2021-09-19 1864/week @ 2021-09-26 2484/week @ 2021-10-03 2084/week @ 2021-10-10

7,182 downloads per month
Used in 33 crates (8 directly)

MIT license

7KB
95 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

~175KB