File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ An implementation of the GNU make jobserver for Rust
11
11
"""
12
12
edition = " 2018"
13
13
14
- [dependencies ]
15
- cfg-if = " 0.1.10"
16
-
17
14
[target .'cfg(unix)' .dependencies ]
18
15
libc = " 0.2.50"
19
16
Original file line number Diff line number Diff line change @@ -83,18 +83,15 @@ use std::io;
83
83
use std:: process:: Command ;
84
84
use std:: sync:: { Arc , Condvar , Mutex , MutexGuard } ;
85
85
86
- cfg_if:: cfg_if! {
87
- if #[ cfg( unix) ] {
88
- mod unix;
89
- use unix as imp;
90
- } else if #[ cfg( windows) ] {
91
- mod windows;
92
- use windows as imp;
93
- } else {
94
- mod wasm;
95
- use wasm as imp;
96
- }
97
- }
86
+ #[ cfg( unix) ]
87
+ #[ path = "unix.rs" ]
88
+ mod imp;
89
+ #[ cfg( windows) ]
90
+ #[ path = "windows.rs" ]
91
+ mod imp;
92
+ #[ cfg( not( any( unix, windows) ) ) ]
93
+ #[ path = "wasm.rs" ]
94
+ mod imp;
98
95
99
96
/// A client of a jobserver
100
97
///
You can’t perform that action at this time.
0 commit comments