git-subtree-dir: third_party/flatbuffers git-subtree-split: 595bf0007ab1929570c7671f091313c8fc20644e
13 lines
331 B
Rust
13 lines
331 B
Rust
use rustc_version::{version_meta, Channel};
|
|
|
|
fn main() {
|
|
let version_meta = version_meta().unwrap();
|
|
|
|
// To use nightly features we declare this and then we can use
|
|
// #[cfg(nightly)]
|
|
// for nightly only features
|
|
if version_meta.channel == Channel::Nightly {
|
|
println!("cargo:rustc-cfg=nightly")
|
|
}
|
|
}
|