Skip to content

Commit e6d2599

Browse files
committed
Drop cfg-if dependency
1 parent 2bb982c commit e6d2599

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ An implementation of the GNU make jobserver for Rust
1111
"""
1212
edition = "2018"
1313

14-
[dependencies]
15-
cfg-if = "0.1.10"
16-
1714
[target.'cfg(unix)'.dependencies]
1815
libc = "0.2.50"
1916

src/lib.rs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,15 @@ use std::io;
8383
use std::process::Command;
8484
use 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
///

0 commit comments

Comments
 (0)