-
Notifications
You must be signed in to change notification settings - Fork 512
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
Feature request: riddle lib interface #2593
Comments
I've had a few suggestions for a lib. That should be doable. |
Related: rust-lang/cargo#9096 (allow artifact dependencies on bin, cdylib, and staticlib crates), just adding a link for tracking purposes. |
Some dev discussion notes to refresh our memory later:
|
We could hide the default winmd files behind a crate feature, so they're not included if not desired. Mainly, it doesn't make sense for |
Motivation
I have a low-level crate which uses currently windows-sys but imports a great set of features and uses only about 1 function for each of these features, I'm searching to optimize the bindings to only exactly what I'm using based on what feature the user enabled on the lib crate itself.
I've looked into the riddle tool which looks like it could help me but there's one big drawback of using it: it's absolute pain to setup. What I need is a way to install the riddle tool as part of build.rs script in order to generate the bindings in dev only. Forcing other people to install globally this tool is unacceptable. So the current setup will force me to make some hacky code to download (or use submodule), build and run the tool manually from build.rs.
Could you provide a simple lib interface so that I can import this tool in dev and use it from build.rs?
Drawbacks
No response
Rationale and alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: