-
Notifications
You must be signed in to change notification settings - Fork 511
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
Support standalone code generation #2396
Conversation
Note that this PR only changes the |
I wasn’t one of the person asking for it, but still, it looks absolutely amazing, thanks for that ! To avoid recompiling the bindings all the time when building the crate, we could add a recommandation to move them to a sub-crate only for that, for example parking_lot would introduce « parking_lot_bindings_windows » and simply save the bindings in this new crate’s lib.rs. Are the bindings always windows-sys’ style or is it possible to have them windows’ style in the future (I’m thinking about COM APIs), with added traits and all (probably not for this MR though) ? |
This looks great, thanks for working on this! It would be great if, as @poliorcetics suggests, there would be a way to bring in the safe bindings at a similar level of granularity. |
Yes, I just need to move some of the core types needed to support the |
Awesome, looking forward to it! |
👍 for having this on |
https://kennykerr.ca/rust-getting-started/standalone-code-generation.html
Fixes: #1720