build.rs@411c6be29fe5
build.rs
Mon, 28 Apr 2025 09:08:45 -0500
- author
- Tuomo Valkonen <tuomov@iki.fi>
- date
- Mon, 28 Apr 2025 09:08:45 -0500
- branch
- dev
- changeset 100
- 411c6be29fe5
- parent 94
-
1f19c6bbf07b
- permissions
- -rw-r--r--
Remove Send + Sync + 'static requirement on NormExponent. Allow Zed to reindent norms.rs.
use rustc_version::{version_meta, Channel};
fn main() {
// Tell rust that nightly flag exists
println!("cargo::rustc-check-cfg=cfg(nightly)");
if version_meta().unwrap().channel == Channel::Nightly {
// … and set it for nightly.
println!("cargo:rustc-cfg=nightly");
}
}