#version #rustc

rustc_version_runtime

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

6 releases

Uses old Rust 2015

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

#405 in Development tools

Download history 36306/week @ 2022-12-08 19634/week @ 2022-12-15 12659/week @ 2022-12-22 25034/week @ 2022-12-29 29502/week @ 2023-01-05 41254/week @ 2023-01-12 41907/week @ 2023-01-19 61667/week @ 2023-01-26 71050/week @ 2023-02-02 50864/week @ 2023-02-09 43277/week @ 2023-02-16 44766/week @ 2023-02-23 34045/week @ 2023-03-02 48683/week @ 2023-03-09 38440/week @ 2023-03-16 42328/week @ 2023-03-23

172,223 downloads per month
Used in 118 crates (21 directly)

MIT license

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

~190KB