7 releases

Uses old Rust 2015

0.3.0 Oct 25, 2023
0.2.1 Oct 27, 2021
0.2.0 Jul 12, 2020
0.1.5 Oct 19, 2018
0.1.0 Aug 24, 2015

#23 in Programming languages

Download history 34810/week @ 2023-12-16 19275/week @ 2023-12-23 32842/week @ 2023-12-30 40238/week @ 2024-01-06 42620/week @ 2024-01-13 45201/week @ 2024-01-20 49790/week @ 2024-01-27 51734/week @ 2024-02-03 44623/week @ 2024-02-10 37123/week @ 2024-02-17 30573/week @ 2024-02-24 40603/week @ 2024-03-02 38711/week @ 2024-03-09 55907/week @ 2024-03-16 58498/week @ 2024-03-23 32610/week @ 2024-03-30

191,811 downloads per month
Used in 188 crates (21 directly)

MIT license

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

~90KB