Skip to content

Commit bff3898

Browse files
committed
Switch to using windows-bindgen in build.rs
1 parent ecbd49a commit bff3898

File tree

14 files changed

+211
-116
lines changed

14 files changed

+211
-116
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
target
2+
src/windows_sys.rs

Cargo.lock

Lines changed: 122 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,26 +49,12 @@ version = "0.36.0"
4949
default-features = false
5050
features = ['read_core', 'elf', 'macho', 'pe', 'xcoff', 'unaligned', 'archive']
5151

52-
[target.'cfg(windows)'.dependencies.windows-sys]
53-
version = "0.42.0"
54-
features = [
55-
"Win32_Foundation",
56-
"Win32_Security",
57-
"Win32_System_Diagnostics_Debug",
58-
"Win32_System_Diagnostics_ToolHelp",
59-
"Win32_System_Kernel",
60-
"Win32_System_LibraryLoader",
61-
"Win32_System_SystemInformation",
62-
"Win32_System_Threading",
63-
"Win32_System_WindowsProgramming",
64-
"Win32_Globalization",
65-
"Win32_System_Memory"
66-
]
67-
6852
[build-dependencies]
6953
# Only needed for Android, but cannot be target dependent
7054
# https://github.com/rust-lang/cargo/issues/4932
7155
cc = "1.0.97"
56+
# Same as above but for Windows
57+
windows-bindgen = "0.57"
7258

7359
[dev-dependencies]
7460
dylib-dep = { path = "crates/dylib-dep" }

0 commit comments

Comments
 (0)