Skip to content

Commit

Permalink
Update windows bindings and use windows-targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Aug 9, 2024
1 parent fd0aed5 commit f3830be
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 382 deletions.
145 changes: 58 additions & 87 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ serde = { version = "1.0", optional = true, features = ['derive'] }
cpp_demangle = { default-features = false, version = "0.4.0", optional = true, features = [
"alloc",
] }
windows-targets = "0.52.6"

[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
miniz_oxide = { version = "0.7.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion bindings.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--out src/windows_sys.rs
--config std flatten
--config sys flatten
--filter
Windows.Win32.Foundation.CloseHandle
Windows.Win32.Foundation.FALSE
Expand Down
4 changes: 3 additions & 1 deletion crates/as-if-std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ default-features = false
optional = true
features = ['read_core', 'elf', 'macho', 'pe', 'xcoff', 'unaligned', 'archive']

[target.'cfg(windows)'.dependencies]
windows-targets = "0.52.6"

[build-dependencies]
# Dependency of the `backtrace` crate
cc = "1.0.97"
windows-bindgen = "0.56"

[features]
default = ['backtrace']
Expand Down
Loading

0 comments on commit f3830be

Please sign in to comment.