#rustc-version #rustc #version

build rustc-simple-version

Access the rustc version used to build your project using a simple constant

2 releases

new 0.1.1 May 21, 2024
0.1.0 Jun 18, 2020

#6 in #rustc-version

Download history 497/week @ 2024-01-28 203/week @ 2024-02-04 715/week @ 2024-02-11 602/week @ 2024-02-18 408/week @ 2024-02-25 388/week @ 2024-03-03 599/week @ 2024-03-10 484/week @ 2024-03-17 670/week @ 2024-03-24 366/week @ 2024-03-31 433/week @ 2024-04-07 626/week @ 2024-04-14 600/week @ 2024-04-21 527/week @ 2024-04-28 342/week @ 2024-05-05 467/week @ 2024-05-12

1,971 downloads per month
Used in gerrit-grr

Apache-2.0

4KB

rustc-simple-version

crates.io docs.rs pipeline status coverage report

The rustc-simple-version crate provides a simple constant that exposes the version of rustc used to compile your project.

use rustc_simple_version::RUSTC_VERSION;

println!("Built using {}", RUSTC_VERSION);

The main difference between this and rustc_version is that the latter is intended to be used as a build dependency for your build.rs, while this crate should be used at runtime.

License

rustc-simple-version is (C) 2020 Kunal Mehta, released under the Apache 2.0 or any later version, see LICENSE for details.

No runtime deps