Skip to content

Commit c3079a0

Browse files
committed
Merge branch 'master' of github.com:zonyitoo/context-rs
2 parents ed8a939 + 9190d46 commit c3079a0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sudo: false
22
language: rust
33
rust:
44
- nightly
5-
- 1.6.0
5+
- 1.9.0
66

77
os:
88
- linux

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ exclude = [
2222
]
2323

2424
[dependencies]
25-
kernel32-sys = "0.2"
2625
libc = "0.2"
26+
27+
[target.'cfg(windows)'.dependencies]
28+
kernel32-sys = "0.2"
2729
winapi = "0.2"
2830

2931
[build-dependencies]

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
//! and thus the building blocks for higher-level abstractions, like coroutines,
1313
//! cooperative threads (userland threads) or an equivalent to the C# keyword "yield".
1414
15-
extern crate kernel32;
1615
extern crate libc;
16+
#[cfg(windows)]
17+
extern crate kernel32;
18+
#[cfg(windows)]
1719
extern crate winapi;
1820

1921
/// Provides the `Context` and `Transfer` types for

0 commit comments

Comments
 (0)