mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 19:25:56 +03:00
[PR #2530] [MERGED] Make error modules private #3110
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#3110
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/2530
Author: @djc
Created: 10/24/2024
Status: ✅ Merged
Merged: 10/30/2024
Merged by: @djc
Base:
main← Head:error-api📝 Commits (6)
2cc0a4bproto: remove unused trait11c909dproto: make error module private7313e54resolver: make error module privatea0ccde5client: make error module private0d332e8recursor: make error module private6bad6a2server: make error module private📊 Changes
57 files changed (+188 additions, -223 deletions)
View changed files
📝
bin/benches/comparison_benches.rs(+2 -2)📝
bin/src/lib.rs(+5 -5)📝
bin/tests/integration/named_https_tests.rs(+1 -1)📝
bin/tests/integration/named_quic_tests.rs(+1 -1)📝
bin/tests/integration/server_harness/mod.rs(+3 -1)📝
bin/tests/integration/server_harness/mut_message_client.rs(+1 -1)📝
crates/async-std-resolver/src/lib.rs(+1 -1)📝
crates/async-std-resolver/src/runtime.rs(+4 -4)📝
crates/client/src/client/client.rs(+5 -5)📝
crates/client/src/client/dnssec_client.rs(+1 -1)📝
crates/client/src/client/memoize_client_handle.rs(+2 -2)📝
crates/client/src/client/rc_stream.rs(+1 -1)📝
crates/client/src/error.rs(+6 -4)➖
crates/client/src/error/mod.rs(+0 -24)📝
crates/client/src/lib.rs(+2 -1)📝
crates/proto/src/error.rs(+21 -11)📝
crates/proto/src/lib.rs(+5 -2)📝
crates/recursor/src/error.rs(+3 -13)📝
crates/recursor/src/lib.rs(+1 -1)📝
crates/recursor/src/recursor.rs(+8 -11)...and 37 more files
📄 Description
The error types are a fairly important part of the public API, so IMO documentation is better if these types are not "hidden" in an
errormodule but instead visible at the top level.Similarly, the use of
Resultaliases IMO does not provide much value and does have some costs (an extra indirection level in the documentation being one obvious cost). Keep them private.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.