Add DNS resolver support to arti
I used trust-dns-proto
with no default features because other trust-dns-*
crates or proto with its default feature depend on tokio, and Arti try to be runtime independent.
I had an issue with TorClient::resolve
returning a BadPort error, it seems it try to construct a TorAddr with a port set to 0
, which TorAddr does not allow.
Before merging I should add some tests on resolve
so the bug doesn't come back, as well as add some integration test for the new DNS port.