dd: only require signal-hook on linux

This commit is contained in:
Jeremy Soller 2021-08-06 13:28:54 -06:00
parent 7d07ffc47d
commit 27f53aa0df
No known key found for this signature in database
GPG key ID: E988B49EE78A7FB1

View file

@ -19,13 +19,15 @@ byte-unit = "4.0"
clap = { version = "2.33", features = [ "wrap_help" ] }
gcd = "2.0"
libc = "0.2"
signal-hook = "0.3.9"
uucore = { version=">=0.0.8", package="uucore", path="../../uucore" }
uucore_procs = { version=">=0.0.5", package="uucore_procs", path="../../uucore_procs" }
[dev-dependencies]
tempfile = "^3"
[target.'cfg(target_os = "linux")'.dependencies]
signal-hook = "0.3.9"
[[bin]]
name = "dd"
path = "src/main.rs"