make procfs an optional dependency so sdk can build on macos (#2028)

* make procfs an optional dependency so sdk can build on macos

* flag dependency as linux only

* remove optional procfs dep

Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
Lucy C
2022-12-05 18:54:17 -07:00
committed by GitHub
parent a440e6f115
commit 761b3bd591

View File

@@ -19,7 +19,6 @@ serde_json = "1"
helpers = { path = "../helpers" }
imbl = "2"
nix = "0.25"
procfs = "0.14"
tokio = { version = "1", features = ["full"] }
tokio-stream = { version = "0.1.11" }
tracing = "0.1"
@@ -28,6 +27,9 @@ tracing-futures = "0.2"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
yajrc = { version = "*", git = "https://github.com/dr-bonez/yajrc.git", branch = "develop" }
[target.'cfg(target_os = "linux")'.dependencies]
procfs = "0.14"
[profile.test]
opt-level = 3