From dd6b0e8c886d2cc052bcb4a772cd0d28be76114a Mon Sep 17 00:00:00 2001 From: Janne Blomqvist Date: Wed, 13 Mar 2024 09:25:49 +0200 Subject: [PATCH] Move nvapi dependency to windows target NVAPI only works on Windows, should not build it on other targets. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f5433e0..f8382b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,9 +30,9 @@ ddc-macos = "^0.2" [target.'cfg(target_os = "linux")'.dependencies] ddc-i2c = "^0.2" -nvapi = "^0.1" uinput = "^0.1" [target.'cfg(target_os = "windows")'.dependencies] winapi = { version = "^0.3", features = ["winuser", "libloaderapi"] } ddc-winapi = "^0.2" +nvapi = "^0.1"