Commit Graph

209 Commits

Author SHA1 Message Date
Dirkjan Ochtman
57d0c8c0fb Update to rustls 0.20 2021-10-30 10:18:32 -07:00
Benjamin Fry
a775484ead bump minimum version of Rust to 1.51 2021-10-27 21:02:46 -07:00
Benjamin Fry
7b2e1eb235 Remove Chrono dependency 2021-10-27 21:02:46 -07:00
Benjamin Fry
63fdb84333 prepare 0.21.0.alpha.4 2021-10-13 16:08:14 -07:00
Benjamin Fry
837f65057e prepare 0.21.0-alpha.3 2021-09-28 08:47:26 -07:00
Benjamin Fry
f7465c9917 require Authority to have interior mutability 2021-09-20 12:05:58 -07:00
Benjamin Fry
b8ad0d68ca Move to async-trait for server to simplify function calls 2021-09-20 12:05:58 -07:00
Benjamin Fry
057735a1dc prepare 0.21.0-alpha.2 2021-08-29 17:20:38 -07:00
Benjamin Fry
40d8fb446d add back named_forward_test 2021-08-22 10:30:31 -07:00
Benjamin Fry
d4ee9d5d7b ensure that request codes are properly set on responses 2021-08-22 10:30:31 -07:00
Benjamin Fry
0e8e1b7bc9 Ensure doc tests are run in CI 2021-08-02 21:32:27 +02:00
dependabot[bot]
705524af26 Bump env_logger from 0.8.3 to 0.9.0
Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.8.3 to 0.9.0.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases)
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.3...v0.9.0)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 16:14:24 +02:00
William Desportes
af83717b5b Fix some links to HTTPS 2021-07-12 23:16:13 -04:00
Benjamin Fry
4f591f94b6 remove default feature "dnssec" from client 2021-06-30 06:55:11 -07:00
Benjamin Fry
d9424717ee introduce DnssecAuthority to allow disabling of dnssec in authority 2021-06-30 06:55:11 -07:00
Benjamin Fry
59d6343862 move all DNSSECRecordType variants into RecordType 2021-06-30 06:55:11 -07:00
Trinity Pointard
5bcee8b817 fix https and mdns clients and tests 2021-05-26 12:24:33 -07:00
Benjamin Fry
00f1bc0aeb setup versions for 0.21.0-alpha.1 2021-05-22 10:34:53 -07:00
Benjamin Fry
65846ee1c7 Prepare 0.20.3 with Windows build fix 2021-05-22 10:34:53 -07:00
Trinity Pointard
b4bf726e79 remove multi_answer flag
it was annoying and not very useful
2021-05-22 10:25:49 -07:00
Trinity Pointard
ad16184fdb add support for stream using mpsc for tcp multiplexer
and add a bool flag to DnsHandle::send to tell when multiple answers are
expected
It's used only as an optimisation to close the Stream after first answer
instead of waiting for a timeout
2021-05-22 10:25:49 -07:00
Trinity Pointard
31c748d652 fix clippy
1.52 is out
2021-05-09 01:20:29 -07:00
Benjamin Fry
ca1ba2150b move openssl into proto 2021-04-26 12:16:02 -07:00
Benjamin Fry
b41bcbb1f4 move native-tls into proto 2021-04-26 12:16:02 -07:00
Benjamin Fry
332c378a65 move https impls into proto 2021-04-26 12:16:02 -07:00
Benjamin Fry
4e5655d6de move rustls crate into proto 2021-04-26 12:16:02 -07:00
Benjamin Fry
39932daa03 remove unnecessary BufStreamHandle 2021-04-09 21:57:43 -07:00
Benjamin Fry
d611c5890a warn on not fully matched enums in some cases 2021-04-06 10:29:16 +02:00
Benjamin Fry
590e5e316a fix 1.51 clippy warnings 2021-03-25 20:43:11 -07:00
Thomas de Zeeuw
97e4cf7e20
Update socket2 to v0.4 (#1420) 2021-03-21 21:29:31 +01:00
Benjamin Fry
a1c91f1746 prepare 0.20.1 release 2021-03-15 19:08:28 -07:00
Benjamin Fry
6fcc72acca Make all warnings across crates and binaries consistent 2021-03-08 15:34:26 -08:00
Benjamin Fry
7a4b3b55c3
fix clippy warnings for rustc 1.50 2021-02-17 23:19:59 -08:00
Harry Cheng
26b842b7e9
Enable RuntimeProvider in DoT implementations (#1373) 2021-02-03 20:26:39 +01:00
Evan Cameron
c3c4666416
Mutate edns & remove edns options (#1363) 2021-01-21 14:22:49 +01:00
Benjamin Fry
140881b0e6 prepare 0.20.0 release 2020-12-29 09:43:28 +01:00
messense
f797a11f74 Upgrade to tokio v1.0 2020-12-27 14:59:11 -08:00
Dirkjan Ochtman
f7f7297b33 Push Arc<RwLock<>> into AuthorityObject impl 2020-12-09 08:44:47 -08:00
Benjamin Fry
a44e3f3e60 upgrade rustls to 0.19 and tokio-rustls to 0.21 2020-11-28 20:38:00 -08:00
Benjamin Fry
24c4ccdf02 remove TokioHandle from public interfaces 2020-11-28 20:38:00 -08:00
Benjamin Fry
edd6c71ae4 fix trust-dns build for no-default-features with resolver 2020-11-28 20:38:00 -08:00
Benjamin Fry
0da008592a advise minimum rustc version is now 1.45 2020-11-28 20:38:00 -08:00
Benjamin Fry
e7b291603d upgrade trust-dns to Tokio 0.3 2020-11-28 20:38:00 -08:00
Benjamin Fry
30f2b44986 upgrade proto crate to Tokio 0.3 2020-11-28 20:38:00 -08:00
Benjamin Fry
8056cb0d83 clippy updates for rust 1.48 2020-11-24 14:54:07 -08:00
Dirkjan Ochtman
7895de879f server: make server error handling more consistent (fixes #1266) 2020-10-27 08:16:49 -07:00
Benjamin Fry
1b8f865066 Prepare 0.20.0-alpha.3 2020-10-24 20:03:22 -07:00
dependabot-preview[bot]
9dd89949a9 Bump env_logger from 0.7.1 to 0.8.1
Bumps [env_logger](https://github.com/env-logger-rs/env_logger) from 0.7.1 to 0.8.1.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases)
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md)
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.7.1...v0.8.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-19 20:15:09 +02:00
Dirkjan Ochtman
ab46adcc09 associate Time type with Connect trait 2020-10-16 13:24:45 -07:00
Dirkjan Ochtman
94fa917c74 remove non-macro-use extern crate imports 2020-10-13 07:58:06 -07:00
Dirkjan Ochtman
3ba3937f2d remove response future type parameter where possible 2020-10-01 08:07:54 -07:00
Benjamin Fry
4af665e089 update version for 0.20.0-alpha.2 2020-09-16 16:15:10 -07:00
Benjamin Fry
401e068a52 bump minimum rustc version to 1.42 2020-09-16 16:15:10 -07:00
Benjamin Fry
3ead8b1779 fix regexes for beta and nightly Rust versions 2020-09-15 15:27:44 -07:00
Benjamin Fry
248fd8709b make errors generic in DnsHandle for Resolver 2020-09-15 15:27:44 -07:00
Benjamin Fry
b57b2343f0 bump trust-dns-versions to 0.20.0-alpha.1 2020-08-16 17:58:21 -07:00
Benjamin Fry
5c49fdde0e update rustls to 0.18 and tokio-rustls to 0.14 2020-08-08 17:29:29 -07:00
dependabot-preview[bot]
72aab256f1 Bump tokio from 0.2.21 to 0.2.22
Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.21 to 0.2.22.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.2.21...tokio-0.2.22)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-08 14:07:51 -07:00
Carlos Saltos
70801722eb Minor example.toml file fix at the README files 2020-07-19 11:23:57 -07:00
dependabot-preview[bot]
80670484d3 Bump webpki-roots from 0.19.0 to 0.20.0
Bumps [webpki-roots](https://github.com/ctz/webpki-roots) from 0.19.0 to 0.20.0.
- [Release notes](https://github.com/ctz/webpki-roots/releases)
- [Commits](https://github.com/ctz/webpki-roots/compare/v/0.19.0...v/0.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-23 16:07:57 -07:00
Benjamin Fry
303f007316
No more master slave, in honor of Juneteenth (#1141)
* in honor of Juneteenth, remove replace Master with Primary

* in honor of Juneteenth, remove replace Slave with Secondary

* add 8499 for reference about naming

* clean up deprecation warnings

* remove unsupported markdown strikethroughs...

* revert primary to master in BIND compatibility tests
2020-06-20 12:59:47 -07:00
Benjamin Fry
16f4e862ef rename all references to branch master to main 2020-06-19 11:12:06 -07:00
dependabot-preview[bot]
d2fcef8a11 Bump futures from 0.3.4 to 0.3.5
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.4 to 0.3.5.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.4...0.3.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-14 11:00:19 -07:00
Benjamin Fry
aa315c13b9 bump versions to 0.20 and update Changelog 2020-05-04 15:37:35 -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
Benjamin Fry
e4f736f341
Lucio franco lucio/fix server handle (#1088)
* Fix server to use runtime handle internally

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>

* fix extra features

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>

* fix tests

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>

* bump checkout action to v2

* fix OpenSSL build

Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2020-04-30 12:16:18 -07:00
Benjamin Fry
30e0f302a0 bump version to 0.19.5 2020-04-27 11:58:09 -07:00
Benjamin Fry
49a88d769d bump versions to 0.19.4, update Changelog 2020-04-11 17:06:22 -07:00
dependabot-preview[bot]
67c1f573a2 Bump tokio from 0.2.13 to 0.2.16
Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.13 to 0.2.16.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.2.13...tokio-0.2.16)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-07 14:08:34 -07:00
Benjamin Fry
0ff7817a58 update minimum rust version to 1.40 2020-03-18 15:06:12 -07:00
Benjamin Fry
a2bba3fee0 upgrade rustlts to 0.17 and tokio-rustls to 0.12 2020-02-28 02:25:20 -08:00
Benjamin Fry
e7d4166162 Prepare 0.19.3 release 2020-02-15 12:47:35 -08:00
dependabot-preview[bot]
21bfd01653 Bump tokio from 0.2.9 to 0.2.11
Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.2.9 to 0.2.11.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.2.9...tokio-0.2.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 16:08:45 -08:00
dependabot-preview[bot]
66c36e7348 Bump webpki-roots from 0.18.0 to 0.19.0
Bumps [webpki-roots](https://github.com/ctz/webpki-roots) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/ctz/webpki-roots/releases)
- [Commits](https://github.com/ctz/webpki-roots/compare/v/0.18.0...v/0.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-11 16:00:54 -08:00
dependabot-preview[bot]
9470ee1413 Bump futures from 0.3.1 to 0.3.4
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.1 to 0.3.4.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.1...0.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-11 15:59:45 -08:00
dependabot-preview[bot]
184493db4c Bump regex from 1.3.3 to 1.3.4
Bumps [regex](https://github.com/rust-lang/regex) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.3.3...1.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-03 15:38:40 -08:00
Antony Lesage
b25ab622af
Remove unused futures default features (#1003)
* Remove unused `futures` default features

* Fix tests
2020-02-01 06:22:15 -08:00
Benjamin Fry
eb077cfb68 bump version to 0.19.2 2020-01-16 20:00:06 -08:00
Benjamin Fry
2316acd253 bump version to 0.19.1 2020-01-16 08:55:47 -08:00
Benjamin Fry
eeb27a822c prepare 0.19 release 2020-01-14 11:08:27 -08:00
Benjamin Fry
47ce53bf5d Bump versions to 0.18.1 2020-01-04 18:52:59 -08:00
Benjamin Fry
dfd424734b update some readmes 2019-12-22 13:32:10 -08:00
Benjamin Fry
4661220c52 rename SecureClient et al to Dnssec (more accurate) 2019-12-22 13:32:10 -08:00
Benjamin Fry
9918f937f0 update version to 0.18 2019-12-22 13:32:10 -08:00
Benjamin Fry
00a6f5c758 fix tokio deprecation 2019-12-19 13:11:39 -08:00
Benjamin Fry
d5cd859626 allow any 0.4 version of log 2019-12-19 13:11:39 -08:00
Benjamin Fry
c4be29c200 cargo-with multi-exec 2019-12-19 13:11:39 -08:00
Benjamin Fry
5dc53cd4da use cargo-with for test coverage 2019-12-19 13:11:39 -08:00
chunyingw
93cf1db18b Abstract tokio (#960)
* [trust-dns-proto] Make tokio* optional

1. Move from tokio::io::{AsyncRead, AsyncWrite} to
futures::io::{AsyncRead, AsyncWrite} and provide a helper struct
Compat02As03 for the conversion.
2. Abstract tokio::time::{Delay, Timeout}.
3. Modify the other crates which are impacted by the above two changes.

* [trust-dns-proto] make fn asyn for Time trait

* [trust-dns-proto] collapse features

Collapse the features tokio-io, tokio-time into tokio-time.
2019-12-19 08:42:43 -08:00
dependabot-preview[bot]
ba68b22f42 Bump log from 0.4.8 to 0.4.10
Bumps [log](https://github.com/rust-lang/log) from 0.4.8 to 0.4.10.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.8...0.4.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 13:04:00 -08:00
Benjamin Fry
a4fc571070 only cache deps 2019-12-15 23:23:34 -08:00
Benjamin Fry
c854ca5ab2 cleanup paths for coverage script run 2019-12-15 14:02:29 -08:00
Benjamin Fry
29a447e32b make named tests more resilient, split out tcp_port 2019-12-15 14:02:29 -08:00
Benjamin Fry
f1bd65e9ea remove travis references 2019-12-15 14:02:29 -08:00
Benjamin Fry
4e91786388 get ready to publish 0.18.0-alpha.3 2019-12-14 17:10:35 -08:00
Benjamin Fry
99d8851f65 refactor tests to pull ports from named startup 2019-12-14 15:02:10 -08:00
Benjamin Fry
b6f30098bd fix sqlite tests on windows 2019-12-14 15:02:10 -08:00
Benjamin Fry
1277ebe812 fix dns-over-https build in named 2019-12-14 15:02:10 -08:00
Benjamin Fry
dcb88d2066 Script for installing cargo make 2019-12-14 15:02: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
cd7ffa5885
prepare 0.18-alpha.2 (#945)
* prepare 0.18-alpha.2

* sleep between publishes to let crates.io catch up
2019-12-06 08:47:09 -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
bac20472f4 enforce better code hygiene irt debug statements 2019-11-11 07:42:38 -08:00
Benjamin Fry
dd99c7b8b9
switch default Rust back to stable, add min version check (#912)
* switch default Rust back to stable, add min version check

* enforce formatting

* switch windows back to stable

* fix fmt diff from nightly
2019-11-07 15:01:08 -08:00
Benjamin Fry
13e2ebc637 fixup clippy runs 2019-11-04 07:51:26 -08:00
Benjamin Fry
53db2b2ce4 fix build breakage in benchmarks 2019-10-26 19:04:54 -07:00
ziprandom
c3180ab064 remove NameServerConfigGroup.set_tls_client_config, add with_client_config 2019-10-25 21:21:54 -07:00
Benjamin Fry
65be09b5ff cleanup toml dependencies between server and bin 2019-10-25 15:05:07 -07:00
Benjamin Fry
30f6254deb move named to trust-dns bin crate 2019-10-25 15:05:07 -07:00