Files
pezkuwi-subxt/substrate/core/sr-std/build.rs
T
joe petrowski 0ddcbf747f Convert all UK spelling to US (#2138)
* all the ise

* forgot a misspelling

* a few more replacements

* bump impl

* rollback and fixes

* bump impl again

* Add aliases for RPC

* Update on_demand.rs
2019-03-29 14:11:45 +01:00

14 lines
343 B
Rust

//! Set a nightly feature
use rustc_version::{version, version_meta, Channel};
fn main() {
// Assert we haven't traveled back in time
assert!(version().unwrap().major >= 1);
// Set cfg flags depending on release channel
if let Channel::Nightly = version_meta().unwrap().channel {
println!("cargo:rustc-cfg=feature=\"nightly\"");
}
}