Skip to content

Reduce public api surface#304

Merged
jxs merged 12 commits into
sigp:masterfrom
ackintosh:reduce-public-api-surface
May 22, 2026
Merged

Reduce public api surface#304
jxs merged 12 commits into
sigp:masterfrom
ackintosh:reduce-public-api-surface

Conversation

@ackintosh

@ackintosh ackintosh commented May 15, 2026

Copy link
Copy Markdown
Member

Description

closes #303

Notes & open questions

Change checklist

  • Self-review
  • Documentation updates if relevant
  • Tests if relevant

ackintosh added 8 commits May 16, 2026 08:34
`NodeAddress` and `NodeContact` are re-exported from `handler` and currently appear in the public API (`Event::SessionsExpired`, `Discv5::talk_req`). These two types would be re-exported directly from the crate root.
`RequestId` appears in `TalkRequest::id()`, so this type specifically would need to be re-exported

@jxs jxs 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.

Comment thread src/socket/mod.rs Outdated
Comment thread src/kbucket.rs Outdated
@ackintosh ackintosh force-pushed the reduce-public-api-surface branch from c388324 to 0d7dde4 Compare May 18, 2026 21:46
@ackintosh ackintosh force-pushed the reduce-public-api-surface branch from 2389208 to 8d04d7f Compare May 18, 2026 22:19
@ackintosh

Copy link
Copy Markdown
Member Author

Updated this PR, thanks for your feedback @jxs!

I also added 8d04d7f as a small usability improvement.

@ackintosh ackintosh marked this pull request as ready for review May 18, 2026 22:29

@jxs jxs 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.

Thanks Akihito!

@jxs jxs merged commit ed752b9 into sigp:master May 22, 2026
7 checks passed
@ackintosh ackintosh deleted the reduce-public-api-surface branch May 23, 2026 21:44
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.

Reduce public API surface

2 participants