Expand description
[wdk-build
] is a library that is used within Cargo build scripts to
configure any build that depends on the WDK (Windows Driver Kit). This is
especially useful for crates that generate FFI bindings to the WDK,
WDK-dependent libraries, and programs built on top of the WDK (ex. Drivers).
This library is built to be able to accomodate different WDK releases, as
well strives to allow for all the configuration the WDK allows. This
includes being ables to select different WDF versions and different driver
models (WDM, KMDF, UMDF).
Modules§
- This module provides functions used in the rust scripts in
rust-driver-makefile.toml
. This includes argument parsing functionality used byrust-driver-makefile.toml
to validate and forward arguments common to cargo commands. It uses a combination ofclap
andclap_cargo
to provide a CLI very close to cargo’s own, but only exposes the arguments supported byrust-driver-makefile.toml
.
Structs§
- Configuration parameters for a build dependent on the WDK
- The configuration parameters for KMDF drivers
- The configuration parameters for UMDF drivers
Enums§
- The CPU architecture that’s configured to be compiled for
- Errors that could result from configuring a build via [
wdk-build
] - Errors that could result from parsing a configuration from a [
wdk-build
] build environment - The driver type with its associated configuration parameters
- Driver model type
- Errors that could result from exporting a [
wdk-build
] build configuration
Traits§
- An extension trait that provides a way to create a
bindgen::Builder
configured for generating bindings to the wdk