set_RUST_CHANNEL

Function set_RUST_CHANNEL 

Source
pub fn set_RUST_CHANNEL() -> Result<(), String>
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"

ยงErrors

Returns an error if it fails to execute the rustc command.