From 0aa8a249cf25efb1ce80e8a601e81bf2900c52b1 Mon Sep 17 00:00:00 2001 From: Niyaz Nigmatullin Date: Fri, 19 Aug 2022 08:41:26 +0300 Subject: [PATCH] Make dependencies platform specific --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0f56bdf..2326150 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,8 @@ license = "MIT" [badges] appveyor = { repository = "uutils/platform-info" } -[dependencies] +[target.'cfg(not(target_os = "windows"))'.dependencies] libc = "0.2" + +[target.'cfg(target_os = "windows")'.dependencies] winapi = { version = "0.3", features = ["libloaderapi", "processthreadsapi", "sysinfoapi", "winbase", "winver"] }