Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
service: don't use sysinfo on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva committed Aug 4, 2020
1 parent c52cafd commit 79d3d05
Show file tree
Hide file tree
Showing 2 changed files with 260 additions and 95 deletions.
4 changes: 3 additions & 1 deletion client/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ pin-project = "0.4.8"
hash-db = "0.15.2"
serde = "1.0.101"
serde_json = "1.0.41"
sysinfo = "0.14.15"
sc-keystore = { version = "2.0.0-rc5", path = "../keystore" }
sp-io = { version = "2.0.0-rc5", path = "../../primitives/io" }
sp-runtime = { version = "2.0.0-rc5", path = "../../primitives/runtime" }
Expand Down Expand Up @@ -79,6 +78,9 @@ parity-util-mem = { version = "0.7.0", default-features = false, features = ["pr
[target.'cfg(all(any(unix, windows), not(target_os = "android"), not(target_os = "ios")))'.dependencies]
netstat2 = "0.8.1"

[target.'cfg(all(any(unix, windows), not(target_os = "android"), not(target_os = "ios"), not(target_os = "linux")))'.dependencies]
sysinfo = "0.14.15"

[target.'cfg(target_os = "linux")'.dependencies]
procfs = '0.7.8'

Expand Down
Loading

0 comments on commit 79d3d05

Please sign in to comment.