windows-drivers-rs
windows-drivers-rs copied to clipboard
feat: Add driver-install packaging metadata + support for INF only drivers
This PR introduces support for building INF-only Windows drivers, which are drivers without a driver binary. INF-only drivers are typically used for:
- Extension INFs: These are installed on base drivers to customize them. For more information, see Using an Extension INF File.
- NULL Drivers: These can be used for various purposes, such as setting configuration on a device node and installing a Win32 service application.
Note: This PR include support for a new WDK metadata to enable copying additional files to the driver package folder. This particular feature is not exclusive to INF drivers only.
Summary of Changes
- Add new driver type
PACKAGEfor INF only drivers to the WDK metadata i.e.wdk.driver-model.driver-type - Add new configuration to WDK metadata
wdk.driver-install.package-filesto enable copying addition files to the driver package folder. - Updated the
wdk-buildto support the additions to the WDK metadata. - Added
copy-package-files-to-packagetask torust-driver-makefile.tomlfile. The copies the files listed thewdk.driver-install.package-filesmetadata to the driver package folder. - Ensured that tasks in
rust-driver-makefile.tomlthat are required for driver binaries are skipped forPACKAGEdriver type. - Implemented functions in
cargo_make.rsto support the changes inrust-driver-makefile.toml. - Added sample inf only driver which is a null driver that installs an sample application into the driver store.