-
Notifications
You must be signed in to change notification settings - Fork 17
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
Filtering Mechanism #37
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For use cases like Mach (and maybe std, maybe Bun) it may make sense to add a filtering mechanism to generate subsets of the very substantial API. The bindings are around 72 MB of zig code (more than the zig compiler itself) but many projects only need a very small slice of this (Mach only uses about 172K of Zig bindings). It should be pretty easy to add a filtering mechansim, maybe give a list of DLLS or functions (or both) and only generate those functions, the types for the parameters they use, and the constants whose types are included in those parameter types. This may not cover all constant/types, so maybe allow specifying those.
So the filter is, DLLS, Functions, Types, Constants (where each level will automatically pull in what it needs from the additional level).
The text was updated successfully, but these errors were encountered: