Skip to content

Commit afcfcd1

Browse files
committed
build: Remove getrandom_uwp cfg
As our minimum rust version is 1.33, we can just use `target_vendor`.
1 parent b3d3fbc commit afcfcd1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ fn main() {
77
if target.contains("-uwp-windows-") {
88
// for BCryptGenRandom
99
println!("cargo:rustc-link-lib=bcrypt");
10-
// to work around unavailability of `target_vendor` on Rust 1.33
11-
println!("cargo:rustc-cfg=getrandom_uwp");
1210
} else if target.contains("windows") {
1311
// for RtlGenRandom (aka SystemFunction036)
1412
println!("cargo:rustc-link-lib=advapi32");

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ cfg_if! {
177177
} else if #[cfg(target_os = "vxworks")] {
178178
mod util_libc;
179179
#[path = "vxworks.rs"] mod imp;
180-
} else if #[cfg(all(windows, getrandom_uwp))] {
180+
} else if #[cfg(all(windows, target_vendor = "uwp"))] {
181181
#[path = "windows_uwp.rs"] mod imp;
182182
} else if #[cfg(windows)] {
183183
#[path = "windows.rs"] mod imp;

0 commit comments

Comments
 (0)