BurntSushi / quickcheck

Automated property based testing for Rust (with shrinking).
The Unlicense
2.4k stars 149 forks source link

quickcheck depends on WinAPI? #97

Closed vi closed 9 years ago

vi commented 9 years ago
 Downloading rand v0.3.11 (reasonable - quickcheck is a randomized test)
 Downloading log v0.3.2 (reasonable - it's omnipresent)
 Downloading winapi v0.2.4 ( ??? )
 Downloading quickcheck v0.2.24
BurntSushi commented 9 years ago

Please look at the Cargo.toml for the direct dependencies: https://github.com/BurntSushi/quickcheck/blob/master/Cargo.toml#L16-L19 There is no winapi.

Therefore, winapi must be a dependency of one of quickcheck's dependencies.

In this case, it is a dependency of rand.

tomjakubowski commented 9 years ago

winapi is an empty crate on all non-Windows platforms. The maintainers of some crates (rand, in this case) prefer to just unconditionally depend on it than to get into platform-specific dependencies. See this for more details. https://github.com/rust-lang-nursery/rand/pull/65