windows-drivers-rs
windows-drivers-rs copied to clipboard
feat: make wdk_default bindgen adapters generic for multiple semver support
I've made the wdk_default bindgen adapters generic so that multiple semantic versions of bindgen can implement them. It's probably not the most elegant implementation, but I was really just focused on making this possible in the first place.
Dependency tree of a project using bindgen v0.71.1 while wdk-sys uses bindgen v0.69.5
phnt v0.1.2 (C:\repos\phnt-rs)
├── wdk-sys v0.3.0
│ ├── rustversion v1.0.19 (proc-macro)
│ └── wdk-macros v0.3.0 (proc-macro)
│ [build-dependencies]
│ ├── bindgen v0.69.5
│ ├── ...
│ └── wdk-build v0.3.0
│ ├── ...
│ └── bindgen v0.69.5 (*)
│ [build-dependencies]
│ └── rustversion v1.0.19 (proc-macro)
└── windows-sys v0.59.0
[build-dependencies]
├── bindgen v0.71.1 (C:\repos\rust-bindgen\bindgen)
└── wdk-build v0.3.0 (C:\repos\windows-drivers-rs\crates\wdk-build)
├── ...
└── bindgen v0.69.5 (*)
[build-dependencies]
└── rustversion v1.0.19 (proc-macro)
[dev-dependencies]
└── windows-sys v0.59.0 (*)
@microsoft-github-policy-service agree