-
Notifications
You must be signed in to change notification settings - Fork 111
feat: extend coverage in wdk-sys to include usb-related headers
#296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 9 changed files in this pull request and generated no comments.
Files not reviewed (4)
- crates/wdk-sys/Cargo.toml: Evaluated as low risk
- examples/sample-kmdf-driver/Cargo.toml: Evaluated as low risk
- examples/sample-wdm-driver/Cargo.toml: Evaluated as low risk
- examples/sample-umdf-driver/Cargo.toml: Evaluated as low risk
This pull request introduces several changes to add support for USB APIs from the Windows Driver Kit (WDK) build system. The most important changes include adding a new API subset for USB, updating configuration to handle USB headers, and updating various Cargo.toml files to include the new
usbfeature.Enhancements for USB driver support:
crates/wdk-build/src/lib.rs: Added a newApiSubset::Usbvariant and updated theheadersmethod to include USB headers. Also, added logic to includeufxclient.hbased on the Clang version. [1] [2] [3] [4] [5]crates/wdk-build/src/bindgen.rs: Added several deprecated USB-related items to the blocklist.Configuration updates:
crates/wdk-sys/build.rs: Added a new functiongenerate_usbto generate bindings for USB headers and updatedgenerate_constantsandgenerate_typesto include the USB subset. [1] [2] [3] [4]crates/wdk-sys/src/lib.rs: Added a new moduleusbto include USB bindings. [1] [2]Cargo.toml updates:
crates/wdk-sys/Cargo.toml: Addedusbfeature.examples/sample-kmdf-driver/Cargo.toml,examples/sample-umdf-driver/Cargo.toml,examples/sample-wdm-driver/Cargo.toml: Addedusbdependency. [1] [2] [3]