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

New architecture: Replace PublicItemBuilder with ItemIterator #15

Merged
merged 2 commits into from
Feb 13, 2022

Conversation

Enselic
Copy link
Owner

@Enselic Enselic commented Feb 13, 2022

Instead of iterating over all items with crate_id 0, follow referenced items from the crate root. The main benefits of this new architecture is that we behave properly when:

  • A single item is imported in several places
  • An item is (publicly) imported from another crate

Fixes #11

The main benefits of this new architecture is that we behave properly when:
* A single item is imported in several places
* An item is (publicly) imported from another crate
The special thing with thiserror is that it depends on a thiserror-impl
and re-exports an item from that crate. The new ItemIterator
implementation can handle this, but the old PublicItemBuilder
implementation could not.

This is a regression test for the fix to #11.
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.

Re-exported external items are not listed
1 participant