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

Generate bindings for non-public extern items #856

Closed
wants to merge 1 commit into from

Conversation

mversic
Copy link
Contributor

@mversic mversic commented Jul 19, 2023

Generate bindings for non-public rust items.

We shouldn't be mixing concepts of visibility and exporting. Rust dynamic libraries always export #[no_mangle] items regardless of their visibility. More on this can be found in the issue description

Closes #822

Copy link
Collaborator

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, though I worry a bit about people using the pub check as a escape hatch.

@emilio
Copy link
Collaborator

emilio commented Aug 25, 2023

Merged with a warning fix in 5f235ec

@emilio emilio closed this Aug 25, 2023
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.

Generate bindings for private extern functions by default
2 participants