The validate_wdk_headers() function in build.rs performs checks but provides no feedback on failure. If validation fails, the build defers the error to wdk-build, which produces opaque error messages.
Current behavior:
- Silently returns if WDK base dir not found
- Silently returns if SDK version dir not found
- Only logs warnings via eprintln!, which may not be visible in CI
Improvements:
- Return Result from validate_wdk_headers() and fail build explicitly
- Use cargo::warning= output instead of eprintln! so diagnostics are captured
- Link to wdk-build-troubleshooting.md when validation fails
This helps users debug WDK installation issues without cryptic downstream failures.
The validate_wdk_headers() function in build.rs performs checks but provides no feedback on failure. If validation fails, the build defers the error to wdk-build, which produces opaque error messages.
Current behavior:
Improvements:
This helps users debug WDK installation issues without cryptic downstream failures.