mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[PR #1397] [MERGED] proto: add into_parts methods #2286
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#2286
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/1397
Author: @leshow
Created: 3/1/2021
Status: ✅ Merged
Merged: 3/8/2021
Merged by: @bluejekyll
Base:
main← Head:proto_into_parts📝 Commits (8)
d4259aaproto: add into_parts methods8bffa2aproto: deprecate options() for OPTb272a40proto: use XParts types in public APId2708ecproto: fix cargo destructure830f05eproto: use cfg_if74c28e5proto: fix lint"8e5f4beproto: attempt to satisfy CIab0fdd0add clone to digest📊 Changes
16 files changed (+236 additions, -16 deletions)
View changed files
📝
crates/client/src/error/dnssec_error.rs(+3 -3)📝
crates/proto/src/error.rs(+2 -2)📝
crates/proto/src/lib.rs(+2 -0)📝
crates/proto/src/op/header.rs(+1 -1)📝
crates/proto/src/op/message.rs(+56 -1)📝
crates/proto/src/op/query.rs(+49 -0)📝
crates/proto/src/rr/dnssec/ec_public_key.rs(+1 -0)📝
crates/proto/src/rr/dnssec/mod.rs(+1 -0)📝
crates/proto/src/rr/rdata/opt.rs(+14 -1)📝
crates/proto/src/rr/resource.rs(+58 -0)📝
crates/proto/src/rr/rr_set.rs(+41 -0)📝
crates/proto/src/xfer/dns_request.rs(+1 -1)📝
crates/proto/src/xfer/dns_response.rs(+1 -1)📝
crates/resolver/src/caching_client.rs(+1 -1)📝
crates/resolver/src/lookup.rs(+2 -2)📝
crates/resolver/src/lookup_ip.rs(+3 -3)📄 Description
summary:
HeaderisCopy-options_mutadded toOPT(I had wanted this before but for some reason forgot to add it)AsMut/AsRefadded toOPTinto_partsmethods added toMessageRecordQueryRData-- these methods are useful for us because we want to consume aMessageafter we're done processing and transform it into a log struct, however we can only clone data currently.It occurred to me that it might be nice to have
into_asciithat consumesselfand returns aStringas well asto_asciiforNameandLabel. I have not added these here as I'm not sure if it's possible yet. Any thoughts?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.