Function build_data::set_RUST_CHANNEL
source · pub fn set_RUST_CHANNEL()
Expand description
Sets the RUST_CHANNEL
env variable to Rust channel used by the current build.
Call this from build.rs
.
Use env!
in your main.rs
to use the variable.
Possible values:
"stable"
"beta"
"nightly"
Executes the rustc
command.
§Panics
Panics if it fails to get the value from rustc
.