File tree 2 files changed +1
-3
lines changed
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ fn main() {
7
7
if target. contains ( "-uwp-windows-" ) {
8
8
// for BCryptGenRandom
9
9
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" ) ;
12
10
} else if target. contains ( "windows" ) {
13
11
// for RtlGenRandom (aka SystemFunction036)
14
12
println ! ( "cargo:rustc-link-lib=advapi32" ) ;
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ cfg_if! {
177
177
} else if #[ cfg( target_os = "vxworks" ) ] {
178
178
mod util_libc;
179
179
#[ path = "vxworks.rs" ] mod imp;
180
- } else if #[ cfg( all( windows, getrandom_uwp ) ) ] {
180
+ } else if #[ cfg( all( windows, target_vendor = "uwp" ) ) ] {
181
181
#[ path = "windows_uwp.rs" ] mod imp;
182
182
} else if #[ cfg( windows) ] {
183
183
#[ path = "windows.rs" ] mod imp;
You can’t perform that action at this time.
0 commit comments