mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 09:54:41 -05:00
9 lines
235 B
Rust
9 lines
235 B
Rust
use rustc_version::{version_meta, Channel};
|
|
|
|
fn main() {
|
|
// Set cfg flags depending on release channel
|
|
if matches!(version_meta().unwrap().channel, Channel::Nightly) {
|
|
println!("cargo:rustc-cfg=rustc_nightly");
|
|
}
|
|
}
|