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

#28 in Programming languages

Download history 33314/week @ 2024-08-02 33452/week @ 2024-08-09 31604/week @ 2024-08-16 32729/week @ 2024-08-23 31804/week @ 2024-08-30 30948/week @ 2024-09-06 27827/week @ 2024-09-13 33930/week @ 2024-09-20 37698/week @ 2024-09-27 39283/week @ 2024-10-04 41887/week @ 2024-10-11 43207/week @ 2024-10-18 42088/week @ 2024-10-25 39675/week @ 2024-11-01 37660/week @ 2024-11-08 41393/week @ 2024-11-15

168,982 downloads per month
Used in 219 crates (23 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