File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,17 @@ docopt = "1"
11
11
fixedbitset = " 0.1.5"
12
12
glium = " 0.21"
13
13
lazy_static = " 1"
14
- libc = " 0.2"
15
14
odds = " 0.3"
16
15
rand = " 0.5"
17
16
regex = " 1"
18
17
serde = " 1"
19
18
serde_derive = " 1"
20
19
time = " 0.1"
20
+
21
+ [target .'cfg(unix)' .dependencies ]
22
+ libc = " 0.2"
23
+
24
+ [target .'cfg(windows)' .dependencies ]
21
25
winapi = { version = " 0.3" , features = [" processthreadsapi" ] }
22
26
23
27
[dev-dependencies ]
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ extern crate serde; // all
33
33
extern crate cgmath; // nbody
34
34
#[ macro_use]
35
35
extern crate glium; // nbody
36
+ #[ cfg( unix) ]
36
37
extern crate libc; // life
37
38
extern crate rand; // nbody
38
39
extern crate time; // nbody, sieve
@@ -43,6 +44,7 @@ extern crate num; // factorial
43
44
extern crate lazy_static; // find
44
45
extern crate fixedbitset; // tsp
45
46
extern crate regex; // tsp
47
+ #[ cfg( windows) ]
46
48
extern crate winapi; // life
47
49
48
50
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments