Skip to content

Commit

Permalink
Change build.rs to use the older : rather than ::
Browse files Browse the repository at this point in the history
This allows supporting Rust < 1.77.
  • Loading branch information
tgross35 committed Oct 28, 2024
1 parent 6278178 commit 3198f34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ use std::env;

fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo::rustc-check-cfg=cfg(assert_no_panic)");
println!("cargo::rustc-check-cfg=cfg(feature, values(\"unstable\"))");
println!("cargo:rustc-check-cfg=cfg(assert_no_panic)");
println!("cargo:rustc-check-cfg=cfg(feature, values(\"unstable\"))");

println!("cargo::rustc-check-cfg=cfg(feature, values(\"checked\"))");
println!("cargo:rustc-check-cfg=cfg(feature, values(\"checked\"))");

#[allow(unexpected_cfgs)]
if !cfg!(feature = "checked") {
Expand Down

0 comments on commit 3198f34

Please sign in to comment.