mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-15 01:01:01 +03:00
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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user