#rustc-version #version #rustc

build rustc-simple-version

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

2 releases

0.1.1 May 21, 2024
0.1.0 Jun 18, 2020

#278 in Build Utils

Download history 627/week @ 2024-07-27 650/week @ 2024-08-03 315/week @ 2024-08-10 534/week @ 2024-08-17 590/week @ 2024-08-24 546/week @ 2024-08-31 801/week @ 2024-09-07 817/week @ 2024-09-14 376/week @ 2024-09-21 389/week @ 2024-09-28 198/week @ 2024-10-05 378/week @ 2024-10-12 639/week @ 2024-10-19 287/week @ 2024-10-26 463/week @ 2024-11-02 286/week @ 2024-11-09

1,742 downloads per month

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