29 Commits

Author SHA1 Message Date
Benjamin Fry
408d0baca0 Prepare 0.24 release with branding change to Hickory DNS (#2054)
* update all READMEs with notices about the name change

* update changelog for 0.24

* bump crate versions to 0.24

* update version notice information

* update readmes to back reference trust-dns

* rename all crates to hickory counterparts

* replace all Trust-DNS references in code and comments with Hickory DNS

* rename all Trust-DNS references to Hickory DNS in non-code

* rename all trust-dns-resolver references to hickory-resolver

* rename all trust-dns-client references to hickory-client

* rename all trust-dns-proto references to hickory-proto

* rename all trust-dns-server references to hickory-server

* rename all trust-dns-compatibility references to hickory-compatability

* rename all trust-dns-integration references to hickory-integration

* rename all trust-dns-util references to hickory-util

* Update MIT licenses to reference Hickory DNS

* update all trust-dns references to hickory-dns

* update all bluejekyll github references to hickorydns org

* Update name in Changelog

* make sure hickory-dns logs during tests

* add changelogs for recent main additions

* fix references to trust-dns and hickory in architecture

* update a few trust-dns references in READMEs

* fixup some dangling trust_dns references

* replace fka with formerly in change log

* replace all hickoydns org references to hickory-dns

* replace all http links with https

* update logos

* update hickorydns to hickory-dns for all other org references

* fix Notices of Trust-DNS to Hickory in each Readme
2023-10-13 18:39:28 -07:00
daxpedda
262c1eb2b0 Use required-features for examples 2023-08-31 14:26:39 -07:00
XOR-op
30394b56bd fix: improper use with features 2023-06-06 12:12:09 -07:00
XOR-op
5ab85e297d feat(WIP): change relevant types 2023-06-06 12:12:09 -07:00
Benjamin Fry
0ed43b7da5 ensure all examples are also run during testing 2023-06-05 08:41:46 -07:00
Benjamin Fry
2d352ae66a fixups for Rust 1.70 2023-06-01 17:39:08 -07:00
dAxpeDDa
a10b0b1a64 Replace lazy_static with once_cell 2023-05-24 21:52:09 +02: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
Axel Viala
1659ca5d76 Clippy: Needless borrow. 2022-12-04 15:41:11 -08:00
Jeff Hiner
15423b8610 Use JoinSet for resolver tokio tasks 2022-09-13 08:46:56 -07:00
Benjamin Fry
c425bdbd6e improve resolver docs for docsrs 2021-03-27 19:53:44 -07:00
Benjamin Fry
402a14abce upgrade trust-dns-resolver to Tokio 0.3 2020-11-28 20:38:00 -08:00
Dirkjan Ochtman
94fa917c74 remove non-macro-use extern crate imports 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
92d2cb4aa4 add examples to test case in Resolver 2019-12-26 22:50:20 -08:00
Benjamin Fry
b31cd9ed3d simplify the global resolver example 2019-12-22 13:32:10 -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
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
cbc3d70b69 Use backticks more in the doc comments. 2019-06-25 10:18:40 -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
8292e9da7f Enable clippy on stable (#603)
* add clippy to stable builds

* add clippy run to stable

* fix clippy::range-plus-one

* fix clippy::bool-comparison

* fix dead-code

* fix unused-imports

* fix clippy::needless-collect

* fix clippy::map-clone

* fix clippy::explicit-counter-loop

* fix clippy::ok-expect

* fix clippy::zero-prefixed-literal

* fix clippy::ptr-arg

* fix clippy::collapsible-if

* fix clippy::wrong_self_convention

* fix clippy::useless_format

* clippy::unneeded_field_pattern

* fix clippy::unit_arg

* fix clippy::trivially_copy_pass_by_ref

* fix clippy::suspicious_else_formatting

* fix clippy::string_lit_as_bytes

* fix clippy::single_match

* fix clippy::single_char_pattern

* fix clippy::redundant_pattern

* fix clippy::redundant_field_names

* fix clippy::redundant_closure

* fix clippy::question_mark

* fix clippy::or_fun_call

* fix clippy::op_ref

* fix clippy::new_without_default and new_without_default_derive

* fix clippy::needless_update

* fix clippy::needless_return

* fix clippy::needless_lifetimes

* fix clippy::match_ref_pats

* fix clippy::len_without_is_empty

* fix clippy::if_same_then_else

* fix clippy::if_let_redundant_pattern_matching

* fix clippy::identity_conversion

* fix clippy::filter_next

* fix clippy::expect_fun_call

* fix clippy::enum_variant_names

* fix clippy::derive_hash_xor_eq

* fix clippy::const_static_lifetime

* fix clippy::clone_on_copy

* fix clippy::clone_double_ref

* fix clippy::cast_lossless

* final list of clippy exceptions
2018-11-09 22:03:59 -08: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