Skip to content

Commit

Permalink
Merge pull request #241 from retep998/sterilized-standardized-scienti…
Browse files Browse the repository at this point in the history
…ficized-winapi

Make winapi gated on the std feature
  • Loading branch information
dhardy authored Jan 21, 2018
2 parents 940e401 + 29c4292 commit c957abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ categories = ["algorithms"]
default = ["std"]
nightly = ["i128_support"] # enables all features requiring nightly rust

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

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

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

[workspace]
members = ["rand-derive"]
Expand Down

0 comments on commit c957abe

Please sign in to comment.