Skip to content

Commit 6f28b67

Browse files
committed
Only build windows dependencies for Windows target
Signed-off-by: Teddy Astie <[email protected]>
1 parent 22f50dc commit 6f28b67

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

xen-guest-agent/Cargo.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,12 @@ sysctl = "0.5.0"
3131
[target.'cfg(target_family = "unix")'.dependencies]
3232
syslog = "6.0"
3333

34-
[dependencies.windows]
35-
version = "0.58"
36-
features = [
34+
[target."cfg(windows)".dependencies]
35+
windows = { version = "0.58", features = [
3736
"Win32_Foundation",
3837
"Win32_System_Diagnostics_Debug",
39-
]
40-
41-
[target."cfg(windows)".dependencies]
38+
] }
4239
windows-service = "0.8"
4340

4441
[features]
45-
netlink = ["dep:provider-netlink"]
42+
netlink = ["dep:provider-netlink"]

0 commit comments

Comments
 (0)