mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
12 lines
249 B
Rust
12 lines
249 B
Rust
|
use rustc_version::version;
|
||
|
|
||
|
fn main() {
|
||
|
let version = version().unwrap();
|
||
|
|
||
|
for major in 1..=version.major {
|
||
|
for minor in 0..=version.minor {
|
||
|
println!("cargo:rustc-cfg=rustc_least_{}_{}", major, minor);
|
||
|
}
|
||
|
}
|
||
|
}
|