| Crates.io | rustc-simple-version |
| lib.rs | rustc-simple-version |
| version | 0.1.1 |
| created_at | 2020-06-18 12:29:16.296623+00 |
| updated_at | 2024-05-21 04:31:49.110912+00 |
| description | Access the rustc version used to build your project using a simple constant |
| homepage | |
| repository | https://gitlab.com/legoktm/rustc-simple-version |
| max_upload_size | |
| id | 255316 |
| size | 4,534 |
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.
rustc-simple-version is (C) 2020 Kunal Mehta, released under the Apache 2.0 or any later version, see LICENSE for details.