Function build_data::set_RUST_CHANNEL [−][src]
pub fn set_RUST_CHANNEL()
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
.