| Crates.io | wdi |
| lib.rs | wdi |
| version | 0.1.3 |
| created_at | 2023-08-25 15:48:41.191184+00 |
| updated_at | 2025-09-30 18:34:01.510947+00 |
| description | Rust library for interacting with the Windows Driver Installer subsystem. |
| homepage | |
| repository | https://github.com/blackmagic-debug/wdi-rs |
| max_upload_size | |
| id | 954863 |
| size | 57,100 |
Warning: this crate is extremely work in progress and the actual wrapping is very bare bones. The functionality implemented exists almost entirely for bmputil.
Considerable effort has been put into libwdi-sys's build script to ensure cross compilation works as seamlessly as possible. It will, however, require an existing Windows target cross toolchain setup, but cargo-xwin can take care of most of that for you.
The only other requirement is the Windows 8.0 Driver Kit redistributable components,
with the environment variable WDK_DIR set to the path it's been extracted to, e.g. export WDK_DIR=/opt/wdk/8.0.
By default, the library provides WinUSB support only. Two other drivers are supported by libusb0 and libusbk features.
The only requirement is to provide driver paths through environment variables (respectively, LIBUSB0_DIR and LIBUSBK_DIR).