Skip to content

verify: Add a check that re-exports in types are complete - #420

Merged
tcharding merged 2 commits into
rust-bitcoin:masterfrom
jamillambert:1124-verify-re-exports
Nov 26, 2025
Merged

tcharding merged 2 commits into
rust-bitcoin:masterfrom
jamillambert:1124-verify-re-exports

Conversation

@jamillambert

Copy link
Copy Markdown
Collaborator

Add a new check to verify that goes through every public struct or enum defined in the specified version in types and makes sure that it is exported for that version. This includes auxiliary types and error enums.

It then checks that all auxiliary types that are a field of one of the re-exported types from a previous version are also re-exported.

The first patch adds all the missing re-exports.

The second patch adds the test to verify.

Closes #137

Add all of the missing re-exports for all of the auxiliary types in the
types crate.
Add a new check to verify that ensures all types from the `types` crate
are re-exported for every version. This includes any auxiliary types
from fields in the RPC structs.

@tcharding tcharding left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

tACK 0bbbfbb

Sick.

@tcharding

Copy link
Copy Markdown
Member

This is mad, id you enjoy hacking it up?

@tcharding

tcharding commented Nov 26, 2025 •

Copy link
Copy Markdown
Member

childish chuckle ... 420

@tcharding
tcharding merged commit 0f0dec1 into rust-bitcoin:master Nov 26, 2025
@jamillambert

Copy link
Copy Markdown
Collaborator Author

Yeah it was a good one to work on. I learnt a lot about parsing rust source files. And it felt good when it all ran and worked.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

verify: Test that re-exported types auxiliary types are correct

2 participants