tokio-xmpp: add build script to work around build fail on rustc 1.48
This commit is contained in:
parent
439a09122a
commit
52a2d962ee
3 changed files with 18 additions and 4 deletions
11
tokio-xmpp/build.rs
Normal file
11
tokio-xmpp/build.rs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue