mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #1770] [MERGED] add TypedRecord and TypedRecordRef #2593
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#2593
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?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/1770
Author: @bluejekyll
Created: 8/28/2022
Status: ✅ Merged
Merged: 3/24/2023
Merged by: @bluejekyll
Base:
main← Head:new-typed-record📝 Commits (10+)
ea27cd0Make Record carry type for internal RecordData1b7be11Add more type annotations to RData implementations05f12ebfixup cleanliness for typed recordf946dc7Add RecordData impl for Aa59c659impl RecordData for AAAA5de53a8Simplify encode and decode of fixed length types0c51bb3convert A and AAAA to use RecordData traits475e519convert CAA RecordData traits8408604convert CSYNC RecordData traits9edf20fimplement RecordData for most RData types📊 Changes
93 files changed (+4205 additions, -2749 deletions)
View changed files
📝
bin/tests/named_tests.rs(+3 -2)📝
bin/tests/server_harness/mod.rs(+21 -32)📝
copyright.txt(+1 -1)📝
crates/client/src/client/async_client.rs(+36 -29)📝
crates/client/src/lib.rs(+6 -4)📝
crates/client/src/rr/mod.rs(+7 -15)📝
crates/proto/src/https/https_client_stream.rs(+6 -5)📝
crates/proto/src/op/edns.rs(+19 -23)📝
crates/proto/src/op/message.rs(+5 -5)➕
crates/proto/src/rr/dnssec/rdata/cdnskey.rs(+76 -0)➕
crates/proto/src/rr/dnssec/rdata/cds.rs(+76 -0)📝
crates/proto/src/rr/dnssec/rdata/dnskey.rs(+97 -74)📝
crates/proto/src/rr/dnssec/rdata/ds.rs(+62 -41)📝
crates/proto/src/rr/dnssec/rdata/key.rs(+84 -63)📝
crates/proto/src/rr/dnssec/rdata/mod.rs(+78 -48)📝
crates/proto/src/rr/dnssec/rdata/nsec.rs(+63 -43)📝
crates/proto/src/rr/dnssec/rdata/nsec3.rs(+116 -93)📝
crates/proto/src/rr/dnssec/rdata/nsec3param.rs(+67 -45)➕
crates/proto/src/rr/dnssec/rdata/rrsig.rs(+140 -0)📝
crates/proto/src/rr/dnssec/rdata/sig.rs(+102 -82)...and 73 more files
📄 Description
@djc, here are the types I was suggesting. It's possible that TypedRecordRef is not necessary if we deprecate
Recordand replace all use cases withTypedRecord. A different option instead of deprecating would be to do a type alias oftype Record = TypedRecord<RData>. I'm not sure which would be better for downstream dependencies.If you like this, I can add everything necessary to make all
RecordDatabe compatible with this, currently onlySOAimplementsRecordData.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.