mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[GH-ISSUE #972] trust-dns-resolver compatibility on Fuchsia #580
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#580
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 @chunyingw on GitHub (Dec 26, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/972
Hey Ben,
I am looking into
trust-dns-resolvercrate and making tokio crate optional so that Fuchsia does not need to downloadtokio.My current approach is to define
FuchsiaConnectionProviderwhich implements the traitConnectionProviderandFuchsiaConnectiontype which implementsDnsHandle, and I am able to define the typepub struct Resolver { resolver: AsyncResolver<FuchsiaConnection, FuchsiaConnectionProvider>, }With this approach I am able to run similar test cases such as
test_lookup_google(lookup IP address for host) defined in async_resolver.rs successfully as a proof of concept.The pros is that there is not breaking changes, the cons is I need to duplicate quite a few codes in fuchsia's library such as the definition of
enum ConnectionConnect,enum ConnectionBackgroundetc. which are pretty similar for the ones used for tokio case.The other approach I may think of is to make types such as TokioConnection, TokioConnectionProvider generic and rename it, so the same definition could be reused. Obviously the cons is there will be breaking changes.
Do you have any opinion on this? Please let me know. Thanks!
@bluejekyll commented on GitHub (Dec 26, 2019):
Could still have default impls of TokioConnectionProvider and TokioConnection that both implement the Generic type you come up with? I agree that we should try to avoid duplication of code. Connection and ConnectionProvider are effectively internal traits, so a breaking change there is fine, IMO, I also don't mind going straight to 0.19 in the name of progress.
@chunyingw commented on GitHub (Dec 26, 2019):
Sure, that makes sense.
On Thu, Dec 26, 2019, 5:15 PM Benjamin Fry notifications@github.com wrote:
@chunyingw commented on GitHub (Jan 8, 2020):
Fixed with https://github.com/bluejekyll/trust-dns/pull/975.