mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #926] Async_std support #568
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#568
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 @Softsapiens on GitHub (Nov 20, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/926
Hi all!
I would like to know if there is any option to decouple trust-dns-resolver from tokio in order to use async_std as executor runtime, or at least, if there are plans for making easy that integration, perhaps using trust-dns-client ClientFuture.
I have tried to use the AsyncResolver spwaned on async_std::task but I get the same situation as is https://github.com/bluejekyll/trust-dns/issues/905
Thanks an advance, and thanks for such a great library.
@bluejekyll commented on GitHub (Nov 20, 2019):
Currently this is not being worked on, though it is something that we could work towards. #913 removes all background spawns from the Resolver (I'm working on the last few changes there).
No, don't just use the ClientFuture, as that is not a Resolver, and won't serve those needs properly.
After #913, there will need to be a lot of additional work to allow for alternative
async-stdUDP, TCP, TLS, and HTTPS implementations to be supported. All of this is of course possible, but that will require a bunch of investigation. There are many good reasons to do this work, beyond supportingasync-std, which include making the library more usable on new operating systems and such. So this is definitely something we should do.@Softsapiens commented on GitHub (Nov 21, 2019):
Thanks
@bluejekyll commented on GitHub (Nov 21, 2019):
We can leave this issue open as a tracking issue, and discussion.
@bluejekyll commented on GitHub (Dec 12, 2019):
FYI, with #935 landed, this is something we could start work on.
@bluejekyll commented on GitHub (Dec 15, 2019):
I'm not sure if we can do this (easily) before AsyncRead and AsyncWrite are common between Futures, Tokio and async-std. But the work I believe is basically implementing a new ConnectionProvider for async-std:
github.com/bluejekyll/trust-dns@4e91786388/crates/resolver/src/name_server/connection_provider.rs (L46-L56)@bluejekyll commented on GitHub (Dec 28, 2019):
With #975 done, I think this should be fairly straight forward at this point.
@belak commented on GitHub (Mar 25, 2020):
I believe this will also require changes in the lower level libraries for the different TLS implementations as well.
@bluejekyll commented on GitHub (Mar 26, 2020):
Most likely. But that doesn’t need to be part of an MVP.