Skip to content

hkBst/rustc-with-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Override rustc version output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages