Cross platform get_info

Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
junxiang Mu
2024-10-22 14:31:28 +08:00
parent 9ff243a7a9
commit 49593dd77d
12 changed files with 281 additions and 10 deletions
+4 -1
View File
@@ -31,7 +31,6 @@ lazy_static.workspace = true
lock.workspace = true
regex = "1.11.0"
netif = "0.1.6"
nix = { version = "0.29.0", features = ["fs"] }
path-absolutize = "3.1.1"
protos.workspace = true
rmp-serde = "1.3.0"
@@ -53,7 +52,11 @@ num_cpus = "1.16"
s3s-policy.workspace = true
[target.'cfg(not(windows))'.dependencies]
nix = { version = "0.29.0", features = ["fs"] }
openssl = "0.10.66"
[target.'cfg(windows)'.dependencies]
winapi = "0.3.9"
[dev-dependencies]
tokio = { workspace = true, features = ["rt-multi-thread", "macros"] }