Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ wdk-sys = { path = "crates/wdk-sys", version = "0.5.1" }
anyhow = "1.0.97"
assert_cmd = "2.0.17"
assert_fs = "1.1.3"
bindgen = "0.71.0"
bindgen = "0.72.1"
bitflags = "2.6.0"
camino = "1.1.9"
cargo_metadata = "0.19.2"
cc = "1.2.39"
Expand Down
2 changes: 2 additions & 0 deletions crates/wdk-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ nightly = []
[dependencies]
anyhow.workspace = true
bindgen.workspace = true
bitflags.workspace = true
camino.workspace = true
cargo_metadata.workspace = true
cfg-if.workspace = true
Expand All @@ -32,6 +33,7 @@ rustversion.workspace = true
semver.workspace = true
serde = { features = ["derive"], workspace = true }
serde_json.workspace = true
syn = { features = ["extra-traits", "full", "parsing"], workspace = true }
thiserror.workspace = true
tracing.workspace = true
windows = { features = [
Expand Down
3 changes: 3 additions & 0 deletions crates/wdk-build/src/bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ impl BuilderExt for Builder {
// Defaults enums to generate as a set of constants contained in a module (default value
// is EnumVariation::Consts which generates enums as global constants)
.default_enum_style(bindgen::EnumVariation::ModuleConsts)
// `size_t`/`ssize_t` are pointer-width on every supported Windows
// driver target (x64, ARM64, x86), matching Rust's `usize`/`isize`.
.size_t_is_usize(true)
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
.parse_callbacks(Box::new(WdkCallbacks::new(config)))
.formatter(bindgen::Formatter::Prettyplease)
Expand Down
Loading
Loading