Repository navigation
feat: put the lab DNS server behind a dns-server feature - #80
Merged
Merged
Conversation
Frando
reviewed
Nov 18, 2026
Member
There was a problem hiding this comment.
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 acargo clippy -p patchbay --no-default-features --all-targets -- -D warningsstep to CI. - Let's change the feature name to
dns-server.Device::resolveand the per-device/etc/hostsoverlay keep working without the feature. Only the in-process server goes away.dns-serverdescribes that more exactly thandns.
A build without dns drops hickory-proto.
shubham-kaushal
force-pushed
the
pr/dns
branch
from
November 20, 2026 12:13
04783e2 to
11685f4
Compare
Contributor
Author
|
Done, both:
Also rebased on main. |
Frando
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The lab DNS server (
Lab::dns_server,Lab::resolve) is now behind adns-serverfeature. It is on by default, so nothing changes for current users. Withdefault-features = false, patchbay no longer pulls in hickory-proto.Device::resolveand the per-device/etc/hostsoverlay work with or without the feature.CI runs clippy with
--no-default-featurestoo, so the feature-off build stays checked.