Skip to content

Stop leaking hickory error types in litep2p public API - #643

Merged
dmitry-markin merged 2 commits into
masterfrom
dm-stop-leaking-hickory-errors
Aug 17, 2026
Merged

Stop leaking hickory error types in litep2p public API#643
dmitry-markin merged 2 commits into
masterfrom
dm-stop-leaking-hickory-errors

Conversation

@dmitry-markin

Copy link
Copy Markdown
Collaborator

This is what happened in litep2p <= v0.14.3 and forces us now to go to v0.15 because of the changes in hickory error types. Stop leaking so we can tolerate future hickory error type changes.

Also mark litep2p Error as non-exhaustive, so it can be safely extended in the future.

@dmitry-markin
dmitry-markin requested a review from gab8i August 17, 2026 07:33
@dmitry-markin dmitry-markin self-assigned this Aug 17, 2026
@dmitry-markin
dmitry-markin merged commit cd29ea0 into master Aug 17, 2026
11 checks passed
@dmitry-markin
dmitry-markin deleted the dm-stop-leaking-hickory-errors branch August 17, 2026 07:59
@github-project-automation github-project-automation Bot moved this to Blocked ⛔️ in Networking Aug 17, 2026
dmitry-markin added a commit that referenced this pull request Aug 17, 2026
## [0.15.0] - 2026-08-17
This release focuses on WebRTC. It is the first release with official
WebRTC support. Expect things to break and get fixed in subsequent point
releases.
This release is also semver breaking on the error API.
`Error::CannotReadSystemDnsConfig` now carries an opaque `DnsInitError`
instead of a `hickory-resolver` error type, and the new
`Error::DnsResolverInit` variant reports resolver construction failures.
`Error` is now `#[non_exhaustive]`, so external `match` expressions over
it require a wildcard arm. Together these changes keep
`hickory-resolver` out of the public API, making future resolver bumps
semver compatible.
### Added
- webrtc: support wildcard listen addresses
([#640](#640))
- bitswap: enable Keccak and BLAKE2b hashers for CIDs
([#641](#641))
### Changed
- deps: bump hickory-resolver and str0m
([#642](#642))
- deps: bump str0m to 0.22
([#639](#639))
- webrtc: use a shared 16 KiB buffer for the `WebRtcTransport` stream
([#623](#623))
### Fixed
- dns: stop leaking hickory error types in litep2p's public API
([#643](#643))
- webrtc: enforce strict client network identity verification
([#637](#637))
- webrtc: fix input backpressure
([#626](#626))
- webrtc: properly handle `str0m::Event::Closed`
([#627](#627))

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dmitry Markin <dmitry@markin.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Blocked ⛔️

Development

Successfully merging this pull request may close these issues.

2 participants