rustc-simple-version 0.1.1

Access the rustc version used to build your project using a simple constant
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 4.22 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 112.57 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • legoktm/rustc-simple-version
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • legoktm

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.