mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
12 lines
248 B
Rust
12 lines
248 B
Rust
use rustc_version::{version_meta, Channel};
|
|
|
|
fn main() {
|
|
let version = version_meta().unwrap();
|
|
|
|
match version.channel {
|
|
Channel::Nightly => {
|
|
println!("cargo:rustc-cfg=rustc_nightly");
|
|
}
|
|
_ => {}
|
|
}
|
|
}
|