There was an error while loading. Please reload this page.
2 parents 8439f76 + 6a56384 commit 5e397ebCopy full SHA for 5e397eb
Cargo.toml
@@ -22,8 +22,10 @@ exclude = [
22
]
23
24
[dependencies]
25
-kernel32-sys = "0.2"
26
libc = "0.2"
+
27
+[target.'cfg(windows)'.dependencies]
28
+kernel32-sys = "0.2"
29
winapi = "0.2"
30
31
[build-dependencies]
src/lib.rs
@@ -12,8 +12,10 @@
12
//! and thus the building blocks for higher-level abstractions, like coroutines,
13
//! cooperative threads (userland threads) or an equivalent to the C# keyword "yield".
14
15
-extern crate kernel32;
16
extern crate libc;
+#[cfg(windows)]
17
+extern crate kernel32;
18
19
extern crate winapi;
20
21
/// Provides the `Context` and `Transfer` types for
0 commit comments