-
Notifications
You must be signed in to change notification settings - Fork 504
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
no_std
support for windows-rs
#3315
Comments
Good news, the Just make sure to specify https://github.com/microsoft/windows-rs/tree/master/crates/tests/misc/no_std |
I saw some support, indeed, but I wasn't clear on whether it was ready to be used since it is not part of an officially released crate yet (there is no Regardless, if I use the
The
If I mechanically convert references of |
No, these look like they were overlooked by that PR. The challenge is exhaustively testing But we can use this issue to track this and make sure we fix up those few remaining references to |
Fair enough! I'd be happy to take a stab at it since most of it is mechanical conversion, but since testing is indeed difficult I'm not sure I'd end up accidentally breaking stuff. |
Here you go: #3317 |
Suggestion
I am working in an environment in which I am quite executable size constrained, but I'd still like to use Direct3D11 in order to perform some rendering tasks. Since
windows-sys
has no support for this, I am currently using thewinapi
crate to fill in support for the relevant D3D COM classes I'm using. However,winapi
has been unmaintained for three years afterwindows-rs
ate its lunch :)I've tried using
windows-bindgen
to generate bindings and patching them up manually, but I couldn't get the generated code to compile properly (after changing things likestd::ptr::null_mut
tocore::ptr::null_mut
and so on). Could this be a more or less valid path to take, though?What is a good way forward, generally? I wouldn't mind using bindings that are generated by using a manual bindgen step, but ideally I'd just use the
windows
crate since that would also make all other non-COM code simpler and there wouldn't be a manual bindgen step.(btw, I realize this issue has been brought up before, so feel free to close if this cannot be realized, but I'd like some guidance on how to avoid depending on an unmaintained crate)
The text was updated successfully, but these errors were encountered: