mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-08 10:42:37 +00:00
a59f3c4c1f
Also includes a work-around for a buggy `format_args!` macro found in rustc 1.67 and 1.68. Resolves #2670.
12 lines
317 B
Rust
12 lines
317 B
Rust
fn main() {
|
|
if let Some((version, channel, _)) = version_check::triple() {
|
|
if channel.supports_features() {
|
|
println!("cargo:rustc-cfg=nightly");
|
|
}
|
|
|
|
if version.at_least("1.67") && version.at_most("1.68.2") {
|
|
println!("cargo:rustc-cfg=broken_fmt");
|
|
}
|
|
}
|
|
}
|