mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
12 lines
No EOL
270 B
Rust
12 lines
No EOL
270 B
Rust
use rustc_version::{version, version_meta, Channel};
|
|
|
|
fn main() {
|
|
assert!(version().unwrap().major >= 1);
|
|
|
|
match version_meta().unwrap().channel {
|
|
Channel::Stable => {
|
|
println!("cargo:rustc-cfg=feature=\"stable\"")
|
|
}
|
|
_ => {}
|
|
}
|
|
} |