Skip to content

mdns-sd 0.21: ServiceResolved now carries a ResolvedService - #24

Merged
stoatworks-labs merged 3 commits into
mainfrom
chore/mdns-sd-0.21
Aug 27, 2026
Merged

mdns-sd 0.21: ServiceResolved now carries a ResolvedService#24
stoatworks-labs merged 3 commits into
mainfrom
chore/mdns-sd-0.21

Conversation

@stoatworks-labs

Copy link
Copy Markdown
Owner

Supersedes #22, which cannot compile on its own.

ServiceEvent::ServiceResolved used to hand back a ServiceInfo. In 0.21 it carries a ResolvedService, which exposes plain fields instead of the get_* accessors:

before after
info.get_type() info.ty_domain
info.get_addresses_v4() info.addresses — a HashSet<ScopedIp>

ScopedIp records which interfaces an address was seen on, so it is no longer a bare Ipv4Addr: filtered with is_ipv4() and unwrapped with to_ip_addr().

Behaviour is unchanged — taking the first entry of a set was already arbitrary, and still is.

Verified locally: cargo build --all-targets clean, cargo test clean — failing set identical to main's (both empty).

dependabot Bot and others added 3 commits August 27, 2026 14:17
Bumps [mdns-sd](https://github.com/keepsimple1/mdns-sd) from 0.11.5 to 0.21.0.
- [Release notes](https://github.com/keepsimple1/mdns-sd/releases)
- [Changelog](https://github.com/keepsimple1/mdns-sd/blob/main/CHANGELOG.md)
- [Commits](keepsimple1/mdns-sd@v0.11.5...v0.21.0)

---
updated-dependencies:
- dependency-name: mdns-sd
  dependency-version: 0.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Takes #22's bump with the source changes it needs. The ServiceResolved event
used to hand back a ServiceInfo; in 0.21 it is a ResolvedService, which
exposes plain fields rather than the get_* accessors:

  info.get_type()            -> info.ty_domain
  info.get_addresses_v4()    -> info.addresses, a HashSet<ScopedIp>

ScopedIp carries the interfaces an address was seen on, so it is filtered
with is_ipv4() and unwrapped with to_ip_addr() rather than being taken as a
bare Ipv4Addr. Picking the first of a set was arbitrary before and still is;
that has not changed.

Verified: cargo build --all-targets clean, cargo test clean, failing set
identical to main's (empty).
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.

1 participant