Fix non-linux build of sc-client (#5524)

* procfs is linux only

* also for the import

* fixup non-linux build
This commit is contained in:
Benjamin Kampmann
2020-04-04 19:52:19 +02:00
committed by GitHub
parent 247822bb33
commit d155a9d97d
2 changed files with 13 additions and 17 deletions
+4 -4
View File
@@ -62,12 +62,12 @@ sc-tracing = { version = "2.0.0-alpha.5", path = "../tracing" }
tracing = "0.1.10"
parity-util-mem = { version = "0.6.0", default-features = false, features = ["primitive-types"] }
[target.'cfg(unix)'.dependencies]
procfs = '0.7.8'
[target.'cfg(any(unix, windows))'.dependencies]
netstat2 = "0.8.1"
[target.'cfg(windows)'.dependencies]
netstat2 = "0.8.1"
[target.'cfg(target_os = "linux")'.dependencies]
procfs = '0.7.8'
[dev-dependencies]