Skip to content

Rust: skip private items when extracting library files #19581

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aibaars
Copy link
Contributor

@aibaars aibaars commented May 26, 2025

This pull request drops items that are "obviously" private. Those are items that lack any visibility modifier. It also excludes items in traits and in impl block that implement a trait. Items that are generated by macros are not excluded as these are typically wrapped in a detached MacroItems node making it harder to determine whether they are part of a trait or not.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label May 26, 2025
@aibaars aibaars force-pushed the aibaars/rust-extract-libs branch from edd401e to e07b036 Compare May 28, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant