mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #551] code size #234
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aep on GitHub (Aug 22, 2018).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/551
any chance to make idna and url optional dependencies? it's fairly large
@bluejekyll commented on GitHub (Aug 23, 2018):
I think we could do this. It would mean losing some validation and conversion of international names, and limit us to ascii only name interfaces. I believe it's only in place during Name parsing and Name conversion to Strings.
Basically we could default it to on, and make it optional, then feature flag off the methods that require it.
I think we'd lose these methods when it's not enabled:
https://github.com/bluejekyll/trust-dns/blob/master/proto/src/rr/domain/label.rs#L45
https://github.com/bluejekyll/trust-dns/blob/master/proto/src/rr/domain/label.rs#L139
https://github.com/bluejekyll/trust-dns/blob/master/proto/src/rr/domain/name.rs#L412
And we'd need to limit the Display implementation to remove the condition on internationalization:
https://github.com/bluejekyll/trust-dns/blob/master/proto/src/rr/domain/label.rs#L218-L238
And then make this struct feature flagged off as well:
https://github.com/bluejekyll/trust-dns/blob/master/proto/src/rr/domain/name.rs#L736
I think that's all the places where IDNA is in use.
@aep commented on GitHub (Nov 21, 2018):
thanks so much. i'm rewriting carrier now to replace tokio with mio.
Any chance to put only the dns parser into a separate crate?
trust-dns-proto depends on tokio unfortunately
@bluejekyll commented on GitHub (Nov 22, 2018):
I’ve considered it in the past, but haven’t had a need to do so. The project already has so many crates! For some reason I hesitate to add more...
@aep commented on GitHub (Jan 5, 2019):
no longer relevant, i wrote my own dns. should we close?
@bluejekyll commented on GitHub (Jan 6, 2019):
Eventually I want to rework the library to be generic over futures based implementations, but yes, this we can close.