mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
0ddcbf747f
* 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
14 lines
343 B
Rust
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\"");
|
|
}
|
|
}
|