Skip to content

feat: put the lab DNS server behind a dns-server feature - #80

Merged
Frando merged 2 commits into
n0-computer:mainfrom
outpostHQ:pr/dns
Nov 23, 2026
Merged

Frando merged 2 commits into
n0-computer:mainfrom
outpostHQ:pr/dns

Conversation

@shubham-kaushal

@shubham-kaushal shubham-kaushal commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

The lab DNS server (Lab::dns_server, Lab::resolve) is now behind a dns-server feature. It is on by default, so nothing changes for current users. With default-features = false, patchbay no longer pulls in hickory-proto.

Device::resolve and the per-device /etc/hosts overlay work with or without the feature.

CI runs clippy with --no-default-features too, so the feature-off build stays checked.

@Frando Frando 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, yes we can do this. Some nits though:

  • We need CI for the feature on an off. The #[cfg(feature = "dns")] paths can break without anyone noticing otherwise. Please add a cargo clippy -p patchbay --no-default-features --all-targets -- -D warnings step to CI.
  • Let's change the feature name to dns-server. Device::resolve and the per-device /etc/hosts overlay keep working without the feature. Only the in-process server goes away. dns-server describes that more exactly than dns.

@shubham-kaushal shubham-kaushal changed the title feat: put the lab DNS server behind a default feature dns feat: put the lab DNS server behind a dns-server feature Nov 20, 2026
@shubham-kaushal

Copy link
Copy Markdown
Contributor Author

Done, both:

  • The feature is now dns-server.
  • CI runs cargo clippy --locked -p patchbay --no-default-features --all-targets -- -D warnings right after the normal clippy step.

Also rebased on main.

@Frando
Frando merged commit e5a07ec into n0-computer:main Nov 23, 2026
6 checks passed
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.

2 participants