Skip to content
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

Add a mode to only generate a necessary set of API #344

Open
Gnimuc opened this issue Oct 13, 2021 · 0 comments
Open

Add a mode to only generate a necessary set of API #344

Gnimuc opened this issue Oct 13, 2021 · 0 comments

Comments

@Gnimuc
Copy link
Member

Gnimuc commented Oct 13, 2021

Clang.jl's generator is mainly for creating a complete self-contained Julia binding wrapper package for C libraries.

For C libraries with a huge API set, it's easy to generate raw bindings with Clang.jl but hard to maintain a set of high-level Julia wrappers. So, in practice, there are cases where users only want to use, maintain or embed a small group of API functions from a large C library in their projects.

This problem can be alleviated by adding a "lazy" mode to Clang.jl's generator. Given a set of names, this mode should recursively generate bindings for functions whose names are matched in the set and all dependent identifiers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant