2 releases

0.1.1 Aug 25, 2023
0.1.0 Aug 25, 2023

#180 in Windows APIs

Download history 3/week @ 2024-02-15 18/week @ 2024-02-22 18/week @ 2024-02-29 6/week @ 2024-03-07 6/week @ 2024-03-14 7/week @ 2024-03-21 32/week @ 2024-03-28 19/week @ 2024-04-04

51 downloads per month
Used in 2 crates (via wdi)

MIT/Apache

715KB
17K SLoC

C 14K SLoC // 0.1% comments Visual Studio Project 1.5K SLoC Rust 1.5K SLoC // 0.1% comments Shell 230 SLoC // 0.2% comments Visual Studio Solution 124 SLoC Automake 78 SLoC // 0.0% comments INI 13 SLoC // 0.5% comments Forge Config 5 SLoC // 0.4% comments Batch 2 SLoC

Contains (obscure autoconf code, 13KB) libwdi/configure.ac

wdi-rs — A safe Rust wrapper for libwdi

Warning: this crate is extremely work in progress and the actual wrapping is very bare bones. The functionality implemented exists almost entirely for bmputil.

Cross compilation

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.

Dependencies

~0–2MB
~40K SLoC