Skip to content

Commit

Permalink
windows: make windows-sys dev-dependency target-specific
Browse files Browse the repository at this point in the history
The windows-sys dependency is only relevant on cfg(windows) targets.
  • Loading branch information
decathorpe authored and nagisa committed Mar 5, 2024
1 parent d97c71c commit beffb6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ rust-version = "1.56.0"
[target.'cfg(windows)'.dependencies.windows-targets]
version = ">=0.48, <0.53"

[target.'cfg(windows)'.dev-dependencies.windows-sys]
version = "0.52"
features = ["Win32_Foundation"]

[target.'cfg(unix)'.dependencies.cfg-if]
version = "1"

[dev-dependencies]
libc = "0.2"
static_assertions = "1.1"
windows-sys = { version = "0.52", features = ["Win32_Foundation"] }

[package.metadata.docs.rs]
all-features = true
Expand Down

0 comments on commit beffb6d

Please sign in to comment.