-
Notifications
You must be signed in to change notification settings - Fork 513
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
Make riddle
available as a library
#2609
Conversation
Ideally you can just pass |
I had a brief look and, yep, this looks easier to integrate. I'll do a draft PR to rust-lang tomorrow and see if anything shakes out (iirc there have also been quite a few changes since the last metadata update).
Slightly tricky atm because we have comments in the |
Sounds good. Let me know if you need me to tweak anything. I can also skip comments if that's the only obstacle. |
Yeah, I think the comments are the only issue with input. I did notice that Also minor thing but I think it'd be good to remove the std special case for |
The I'll have a PR up tomorrow with the changes for stripping comments and removing the specializations. You can then double check that for me. Be great to have less differences. |
Tbh it ultimately doesn't matter for sys style bindings, other than making the diff nicer, I was more curious.
Yep! I hope to continue pecking away at the differences. |
This update makes the
riddle
tool available as a library crate.windows-bindgen
crate rather than minting yet another crate.windows-bindgen
crate directly. This can be turned off usingdefault-features = false
as theriddle
tool does.tool_core
crate used internally bywindows-rs
illustrates how to usewindows-bindgen
as a library (9b17c65).riddle
andwindows-bindgen
namely string arguments. The choice is thus purely whether you need a library or prefer a command line tool.@ChrisDenton does this improve your developer experience?
The rest of the PR has a lot of noise but that's largely just generated comments getting updated/removed.
Fixes: #2593
Fixes: #2607