Skip to content

Add export config to expose all structs, enums or unions #1079

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clopez-oc
Copy link

Currently, there is no simple way to instruct cbindgen to simply export all public structs, enums and/or unions, regardless of whether the items themselves appear in public functions or not. In order to do this, each item would need to be added manually to the include config item under [export].

This change adds coarse-grained config items under [export] to simply export all structs, enums and/or unions. Items can further be excluded with the exclude config item under the same category.

Currently, there is no simple way to instruct cbindgen to simply export
all public structs, enums and/or unions, regardless of whether the items
themselves appear in public functions or not. In order to do this, each
item would need to be added manually to the `include` config item under
`[export]`.

This change adds coarse-grained config items under `[export]` to simply
export all structs, enums and/or unions. Items can further be excluded
with the `exclude` config item under the same category.

Signed-off-by: Carlos López <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant