Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 684 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 684 Bytes

There are some crates (autocfg, rustc_version, rustversion) that examine the output of rustc --version [--verbose] to determine the capabilities of your compiler, such as nightliness. This determination can be used by other crates in their build.rs to conditionally enable these capabilities. Sometimes this is not what you want.

This crate allows you to specify a custom version string, such that you are in control of your own destiny...

Examples

Simple usage:

  • RUSTC=rustc-with-version cargo run

With custom version:

  • RUSTC_VERSION=1.0.0 RUSTC=rustc-with-version cargo check