#rustc-version #rustc #version

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

#402 in Build Utils

Download history 403/week @ 2024-10-29 376/week @ 2024-11-05 353/week @ 2024-11-12 915/week @ 2024-11-19 476/week @ 2024-11-26 169/week @ 2024-12-03 466/week @ 2024-12-10 682/week @ 2024-12-17 47/week @ 2024-12-24 335/week @ 2024-12-31 597/week @ 2025-01-07 393/week @ 2025-01-14 227/week @ 2025-01-21 384/week @ 2025-01-28 458/week @ 2025-02-04 405/week @ 2025-02-11

1,486 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