Skip to content

Commit

Permalink
Merge pull request #42 from sgrif/fix/nightly_cfg_warnings
Browse files Browse the repository at this point in the history
Whitelist our cfgs for the new nightly lint
  • Loading branch information
weiznich committed May 17, 2024
2 parents fcd7650 + 265d8a4 commit f05b6c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ fn parse_version(version: &str) {
std::env::var("TARGET").expect("Set by cargo")
);
}
println!("cargo::rustc-check-cfg=cfg(mysql_5_7_x)");
println!("cargo::rustc-check-cfg=cfg(mysql_8_0_x)");
println!("cargo::rustc-check-cfg=cfg(mysql_8_3_x)");
println!("cargo::rustc-check-cfg=cfg(mysql_8_4_x)");
println!("cargo::rustc-check-cfg=cfg(mariadb_10_x)");
// ubuntu/debian packages use the following package versions:
// libmysqlclient20 -> 5.7.x
// libmysqlclient21 -> 8.0.x
Expand Down

0 comments on commit f05b6c6

Please sign in to comment.