Skip to content

Commit c957abe

Browse files
authored
Merge pull request #241 from retep998/sterilized-standardized-scientificized-winapi
Make winapi gated on the std feature
2 parents 940e401 + 29c4292 commit c957abe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ categories = ["algorithms"]
1717
default = ["std"]
1818
nightly = ["i128_support"] # enables all features requiring nightly rust
1919

20-
std = ["libc"] # default feature; without this rand uses libcore
20+
std = ["libc", "winapi"] # default feature; without this rand uses libcore
2121
alloc = [] # enables Vec and Box support without std
2222

2323
i128_support = [] # enables i128 and u128 support
@@ -26,7 +26,7 @@ i128_support = [] # enables i128 and u128 support
2626
libc = { version = "0.2", optional = true }
2727

2828
[target.'cfg(windows)'.dependencies]
29-
winapi = { version = "0.3", features = ["minwindef", "ntsecapi", "profileapi", "winnt"] }
29+
winapi = { version = "0.3", features = ["minwindef", "ntsecapi", "profileapi", "winnt"], optional = true }
3030

3131
[workspace]
3232
members = ["rand-derive"]

0 commit comments

Comments
 (0)