mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-29 20:47:25 +00:00
5a56fbcea3
* Add primitives for sandboxing. * Add sandbox module. * Implement the runtime part of the sandbox. * Rebuild binaries. * Implement smart-contract execution. * Add more documentation.
15 lines
393 B
Rust
Executable File
15 lines
393 B
Rust
Executable File
//! Set a nightly feature
|
|
|
|
extern crate rustc_version;
|
|
use rustc_version::{version, version_meta, Channel};
|
|
|
|
fn main() {
|
|
// Assert we haven't travelled 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\"");
|
|
}
|
|
}
|