From 90228b6b04799b8a102262df6c05c9e1bbde637c Mon Sep 17 00:00:00 2001 From: Jonathan Gilbert Date: Sun, 2 Nov 2025 09:20:59 -0600 Subject: [PATCH] Switched syntax for the rustc-check-cfg directive emitted by build.rs in the scrap crate to use syntax compatible with Rust toolchain version 1.75. The double-colon syntax requires 1.77 or newer, but the older single-colon syntax works fine on newer versions for this directive. --- libs/scrap/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/scrap/build.rs b/libs/scrap/build.rs index 01ec183b0..4157813b7 100644 --- a/libs/scrap/build.rs +++ b/libs/scrap/build.rs @@ -228,7 +228,7 @@ fn ffmpeg() { fn main() { // in this crate, these are also valid configurations - println!("cargo::rustc-check-cfg=cfg(dxgi,quartz,x11)"); + println!("cargo:rustc-check-cfg=cfg(dxgi,quartz,x11)"); // there is problem with cfg(target_os) in build.rs, so use our workaround let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();