microsoft / windows-drivers-rs

Platform that enables Windows driver development in Rust. Developed by Surface.
Apache License 2.0
1.49k stars 65 forks source link

feat: add `skip_umdf_static_crt_check` unstable option to prevent static crt linkage check #217

Closed wmmc88 closed 3 weeks ago

wmmc88 commented 1 month ago

The WDK allows for hybrid CRT linking for UM drivers. Hybrid CRT linkage dynamically links against the UCRT (OS component) and statically links against the VC++ redistributable. Legacy versions of the WDK also allowed dynamically linking against the VC++ runtime.

In order to allow experimentation into these scenarios, an unstable option to skip the static CRT linkage check for UM drivers is added. This feature is currently unstable and is not covered by existing test collateral.