dtolnay / rustversion

Conditional compilation according to rustc compiler version
Apache License 2.0
334 stars 15 forks source link

Apply RUSTC_WRAPPER #47

Closed dtolnay closed 7 months ago

dtolnay commented 7 months ago

The $RUSTC_WRAPPER may change the version number reported by rustc, either by delegating to a different rustc binary than what is specified in $RUSTC, or by editing rustc's stdout.

https://doc.rust-lang.org/1.77.1/cargo/reference/environment-variables.html