From 266e2561bec990efdcdfb66ce2f4dd83f8f7e40f Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 21 May 2024 20:11:32 +0400 Subject: [PATCH] chore: bump cfg_aliases to 0.2.1 This correctly handles recent nightly lint that requires to explicitly define the CFG guards. --- glutin-winit/Cargo.toml | 2 +- glutin-winit/build.rs | 15 --------------- glutin/Cargo.toml | 2 +- glutin/build.rs | 15 --------------- glutin_examples/Cargo.toml | 2 +- glutin_examples/build.rs | 15 --------------- 6 files changed, 3 insertions(+), 48 deletions(-) diff --git a/glutin-winit/Cargo.toml b/glutin-winit/Cargo.toml index 954b3f91ce..3a63d8b432 100644 --- a/glutin-winit/Cargo.toml +++ b/glutin-winit/Cargo.toml @@ -24,4 +24,4 @@ raw-window-handle = "0.6" winit = { version = "0.29.2", default-features = false, features = ["rwh_06"] } [build-dependencies] -cfg_aliases = "0.1.1" +cfg_aliases = "0.2.1" diff --git a/glutin-winit/build.rs b/glutin-winit/build.rs index c64860b7c5..32078de541 100644 --- a/glutin-winit/build.rs +++ b/glutin-winit/build.rs @@ -23,19 +23,4 @@ fn main() { wgl_backend: { all(feature = "wgl", windows, not(wasm_platform)) }, cgl_backend: { all(macos_platform, not(wasm_platform)) }, } - - println!("cargo:rustc-check-cfg=cfg(android_platform)"); - println!("cargo:rustc-check-cfg=cfg(wasm_platform)"); - println!("cargo:rustc-check-cfg=cfg(macos_platform)"); - println!("cargo:rustc-check-cfg=cfg(ios_platform)"); - println!("cargo:rustc-check-cfg=cfg(apple)"); - println!("cargo:rustc-check-cfg=cfg(free_unix)"); - - println!("cargo:rustc-check-cfg=cfg(x11_platform)"); - println!("cargo:rustc-check-cfg=cfg(wayland_platform)"); - - println!("cargo:rustc-check-cfg=cfg(egl_backend)"); - println!("cargo:rustc-check-cfg=cfg(glx_backend)"); - println!("cargo:rustc-check-cfg=cfg(wgl_backend)"); - println!("cargo:rustc-check-cfg=cfg(cgl_backend)"); } diff --git a/glutin/Cargo.toml b/glutin/Cargo.toml index a1fdc660ab..5cdeb83ade 100644 --- a/glutin/Cargo.toml +++ b/glutin/Cargo.toml @@ -73,7 +73,7 @@ features = [ ] [build-dependencies] -cfg_aliases = "0.1.1" +cfg_aliases = "0.2.1" [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs"] diff --git a/glutin/build.rs b/glutin/build.rs index ceaa1e0a84..c8eab1b931 100644 --- a/glutin/build.rs +++ b/glutin/build.rs @@ -21,19 +21,4 @@ fn main() { wgl_backend: { all(feature = "wgl", windows, not(wasm_platform)) }, cgl_backend: { all(macos_platform, not(wasm_platform)) }, } - - println!("cargo:rustc-check-cfg=cfg(android_platform)"); - println!("cargo:rustc-check-cfg=cfg(wasm_platform)"); - println!("cargo:rustc-check-cfg=cfg(macos_platform)"); - println!("cargo:rustc-check-cfg=cfg(ios_platform)"); - println!("cargo:rustc-check-cfg=cfg(apple)"); - println!("cargo:rustc-check-cfg=cfg(free_unix)"); - - println!("cargo:rustc-check-cfg=cfg(x11_platform)"); - println!("cargo:rustc-check-cfg=cfg(wayland_platform)"); - - println!("cargo:rustc-check-cfg=cfg(egl_backend)"); - println!("cargo:rustc-check-cfg=cfg(glx_backend)"); - println!("cargo:rustc-check-cfg=cfg(wgl_backend)"); - println!("cargo:rustc-check-cfg=cfg(cgl_backend)"); } diff --git a/glutin_examples/Cargo.toml b/glutin_examples/Cargo.toml index 503df41d2b..a79fde076e 100644 --- a/glutin_examples/Cargo.toml +++ b/glutin_examples/Cargo.toml @@ -30,7 +30,7 @@ winit = { version = "0.29.2", default-features = false, features = ["android-nat [build-dependencies] gl_generator = "0.14" -cfg_aliases = "0.1.1" +cfg_aliases = "0.2.1" [[example]] name = "android" diff --git a/glutin_examples/build.rs b/glutin_examples/build.rs index c109f8ee73..2fbd6cc476 100644 --- a/glutin_examples/build.rs +++ b/glutin_examples/build.rs @@ -29,21 +29,6 @@ fn main() { cgl_backend: { all(macos_platform, not(wasm_platform)) }, } - println!("cargo:rustc-check-cfg=cfg(android_platform)"); - println!("cargo:rustc-check-cfg=cfg(wasm_platform)"); - println!("cargo:rustc-check-cfg=cfg(macos_platform)"); - println!("cargo:rustc-check-cfg=cfg(ios_platform)"); - println!("cargo:rustc-check-cfg=cfg(apple)"); - println!("cargo:rustc-check-cfg=cfg(free_unix)"); - - println!("cargo:rustc-check-cfg=cfg(x11_platform)"); - println!("cargo:rustc-check-cfg=cfg(wayland_platform)"); - - println!("cargo:rustc-check-cfg=cfg(egl_backend)"); - println!("cargo:rustc-check-cfg=cfg(glx_backend)"); - println!("cargo:rustc-check-cfg=cfg(wgl_backend)"); - println!("cargo:rustc-check-cfg=cfg(cgl_backend)"); - let dest = PathBuf::from(&env::var("OUT_DIR").unwrap()); println!("cargo:rerun-if-changed=build.rs");