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
1111"""
1212edition = " 2018"
1313
14- [dependencies ]
15- cfg-if = " 0.1.10"
16-
1714[target .'cfg(unix)' .dependencies ]
1815libc = " 0.2.50"
1916
Original file line number Diff line number Diff line change @@ -83,18 +83,15 @@ use std::io;
8383use std:: process:: Command ;
8484use std:: sync:: { Arc , Condvar , Mutex , MutexGuard } ;
8585
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;
9895
9996/// A client of a jobserver
10097///
You can’t perform that action at this time.
0 commit comments