Commit Graph

20 Commits

Author SHA1 Message Date
Benjamin Fry
0ed43b7da5 ensure all examples are also run during testing 2023-06-05 08:41:46 -07:00
Benjamin Fry
3a099742fa cleanup workspace features 2023-05-10 22:55:38 +02:00
XOR-op
3410e9e95a fix compile errors 2023-03-04 11:03:13 -08:00
XOR-op
63a1f7692e test: fix compile errors 2023-03-04 11:03:13 -08:00
Benjamin Fry
b34dfff95c fix formatting for inline variables 2023-02-06 09:25:04 -08:00
Jeff Hiner
15423b8610 Use JoinSet for resolver tokio tasks 2022-09-13 08:46:56 -07:00
Benjamin Fry
2539264bce updates from PR review for tracing 2022-05-09 10:33:19 -07:00
Erik Hollensbe
77a821f52b Move log to tracing package
Signed-off-by: Erik Hollensbe <git@hollensbe.org>
2022-05-09 10:33:19 -07:00
Benjamin Fry
402a14abce upgrade trust-dns-resolver to Tokio 0.3 2020-11-28 20:38:00 -08:00
Dirkjan Ochtman
1c0688ce20 adopt 2018 edition idioms 2020-10-13 07:58:06 -07:00
Yuki Okushi
3382d887b7 resolver: Minimize futures dependencies 2020-05-19 06:16:21 -07:00
Johnny Bergström
2502c58c14 use RuntimeProvider in https (#1077)
* logger: missing https crate

* https: use RuntimeProvider when making connections

- [X] use RuntimeProvider when making TCP connections
- [ ] use RuntimeProvider when making TLS upgrades
- [ ] migrate tests

* RuntimeProvider::Tcp: remove async read/write

The TCP needs to Connect, the async readwriter will be in the
transport of connect. Thus we don't need it to be a requirement
on the top trait of RuntimeProvider

* AsyncResolver: remove async from new()

Related to overriding RuntimeProvider for #1074

Solves #1056

* cleanup tests

* rebase master for 0.19.5

* fix windows tests

Co-authored-by: Benjamin Fry <benjaminfry@me.com>
2020-05-02 11:18:50 -07:00
Chunying Wang
e2abc67abf [trust-dns-resolver] Abstract resolver
1. Create a trait RuntimeProvider to abstract the resolver
implementation.
2. Make TokioAsyncResolver as default type.
3. Keep the tls related codes unchanged, which may be abstracted at a
later point.
4. Update the other codes and test cases wherever necessary.
2019-12-28 10:10:30 -08:00
Benjamin Fry
224bde6561 Background with generic spawn (#935)
* all tests updated for new background

* background in Resolver now supported, wip

* clean up client impls

* client passing all tests

* cleanup review comments, remove try_locks

* remove mutexes on NameServers in NameServerPool

* refactored ConnectionProvider

* remove pinutils dependency

* remove the now unused custom *LookupFutures

* remove unused types

* remove all deprecated interfaces from Client

* rename ClientFuture to AsyncClient

* all clippy warnings and SecureClient working

* cleanup clippy warnnings

* Everything working with Background removed

* fix infinite loop

* Client refactored without background

* rebased onto tokio 0.2

* remove Clone and Option from background connects

* cleanup from review

* fix clippy warnings

* spawn in ConnectionProvider

* fix no-default-features test

* only expose testing functions during testing

* fix copyright typo

* revert lookup_ip interface change

* limit tokio features to least required set

* rename tokio-compat to tokio-runtime

* use async fns where possible on AsyncResolver

* fix lifetime issue
2019-12-11 17:43:02 -08:00
Benjamin Fry
3eaf3043d7 update to tokio 0.2 release (#932)
* update to tokio 0.2 release

* update to h2 0.2.0

* fix compilation errors

* server await JoinHandles from spawn

* fix integration tests using different Runtimes

* cleanup named test output

* fix openssl tests

* cleanup code from review

* refactor server_future for JoinHandle, also fix Udp deadlock
2019-12-06 00:00:00 -08:00
Benjamin Fry
31fbf66316 reformat all code 2019-10-17 21:59:20 -07:00
Benjamin Fry
4cacc82f20 update all crates for tls features with std::future 2019-10-17 21:59:20 -07:00
Benjamin Fry
a8dabee099 update resolver to new std::future
all types compiling

cleanup some usage of the pins

all default feature tests passing for resolver!
2019-10-17 21:59:20 -07:00
Bruce Mitchener
939ae2f3d6 Complete renaming of ResolverFuture to AsyncResolver.
This updates various references to ResolverFuture to be referring
to AsyncResolver instead.
2019-06-24 13:22:16 -07:00
Benjamin Fry
4363bfd744 Clean up directory structure of crates (#589)
* Move all public crates into crates/

Integration tests into tests/

* move test certs into tests/test-data

* fix benches

* fix compatibility tests
2018-10-22 08:22:58 -07:00