Fix expected struct sizes for nightly optimizations (no more CI warnings)

This commit is contained in:
xmppftw xmppftw 2023-06-06 11:28:29 +02:00 committed by xmpp ftw
commit c8dcf5e7a7
6 changed files with 27 additions and 0 deletions

12
parsers/build.rs Normal file
View file

@ -0,0 +1,12 @@
use rustc_version::{version_meta, Channel};
fn main() {
let version = version_meta().unwrap();
match version.channel {
Channel::Nightly => {
println!("cargo:rustc-cfg=rustc_nightly");
}
_ => {}
}
}