Make dependencies platform specific

This commit is contained in:
Niyaz Nigmatullin
2022-08-19 08:41:26 +03:00
committed by Sylvestre Ledru
parent 7820fb6855
commit 0aa8a249cf
+3 -1
View File
@@ -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"] }