Skip to content

Commit

Permalink
chore: bump cfg_aliases to 0.2.1
Browse files Browse the repository at this point in the history
This correctly handles recent nightly lint that requires to explicitly
define the CFG guards.
  • Loading branch information
kchibisov authored May 21, 2024
1 parent 8fa8593 commit c68d98f
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 48 deletions.
2 changes: 1 addition & 1 deletion glutin-winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
15 changes: 0 additions & 15 deletions glutin-winit/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
}
2 changes: 1 addition & 1 deletion glutin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
15 changes: 0 additions & 15 deletions glutin/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
}
2 changes: 1 addition & 1 deletion glutin_examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
15 changes: 0 additions & 15 deletions glutin_examples/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c68d98f

Please sign in to comment.