-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue on cross compiling WslPluginApi.h #12580
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging |
/feature |
Diagnostic information
|
Which |
Oh ! |
Hello,
I am developing a Rust framework for creating WSL plugins wslplugins-rs, with a core component involving pure ffi bindings generated using bindgen and windows-rs. It's called wslpluginapi-sys. While the binding generation succeeds on Windows, I encountered an issue when I started to develop cross-compilation feature from Linux to Windows that is nesscesaary for documentation building on docs.rs.
Specifically, the header file provided in your NuGet package includes:
However, on case-sensitive file systems like Linux, the header is named
windows.h
, leading to compilation errors. To proceed, I manually edited the header to replace:with:
To enhance cross-platform compatibility and streamline the cross-compilation process, I suggest updating the header in future releases to use
#include <windows.h>
. This change would prevent manual intervention and facilitate smoother cross-compilation from Linux to Windows.Thank you for considering this improvement.
The text was updated successfully, but these errors were encountered: