tokio-xmpp: add build script to work around build fail on rustc 1.48

This commit is contained in:
Astro 2020-12-25 02:05:02 +01:00
commit 52a2d962ee
3 changed files with 18 additions and 4 deletions

11
tokio-xmpp/build.rs Normal file
View file

@ -0,0 +1,11 @@
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);
}
}
}