Commit Graph
837 Commits
Author SHA1 Message Date
Martin Hoffmann bd9fe433d6 Update changelog. 2024-01-26 13:52:34 +01:00
Ximon EighteenandGitHub 89863b558c RFC 6891 extended RCODE conversion function fixes. (#258)
This PR fixes the extended part returned by `OptRcode::parts` and changes
`OptRcode::to_int` to return all 12 bits.
2024-01-26 13:49:46 +01:00
Martin Hoffmann 88834f012b Fix typo in README. 2024-01-25 11:34:27 +01:00
Martin Hoffmann 23ad84e814 Minor language fix. 2024-01-16 10:42:57 +01:00
Martin HoffmannandGitHub e63c192ebc Remove interop and ci-test features and set interop tests to ignore. (#254)
* Remove interop and ci-test features and set interop tests to ignore.
* Fix feature selection.
* Clippy-suggested improvements.
* Do things for --all-targets in CI.
2024-01-16 10:29:05 +01:00
Martin Hoffmann 34603e0098 Update changelog. 2024-01-15 14:56:51 +01:00
Philip-NLnetLabsandGitHub b8d2aa59bf Client Transport (#215)
This PR adds experimental support for client transport of DNS messages.

It also adds a new concept of unstable features which gate code that can introduce breaking changes also in non-breaking releases.
2024-01-15 14:54:20 +01:00
Martin Hoffmann 6aa6e94ffd Update changelog. 2024-01-12 13:27:01 +01:00
074ec4eed2 Fix displaying of chained domain names. (#253)
This PR fixes the Display implementation of Chain<_,_> so it considers all
possible combinations of empty, non-empty, and root names. It now behaves
similarly to the Display implementation of Dname in that it only adds a final
dot to an absolute name if it is the root label only. Similarly to Dname, it
also adds Chain::fmt_with_dot which returns a temporary type that formats
absolute names with a final dot.

---------

Co-authored-by: Ximon Eighteen <3304436+ximon18@users.noreply.github.com>
2024-01-12 13:24:56 +01:00
Martin Hoffmann 60411fd64a Update changelog. 2024-01-09 12:58:43 +01:00
Torin CareyandGitHub 5f40b970c7 Add AsRef and Borrow for RelativeDname. (#251)
This PR adds impls for AsRef<RelativeDname<[u8]>> and
Borrow<RelativeDname<[u8]>> to RelativeDname<_>.
2024-01-09 12:49:19 +01:00
Martin Hoffmann 15a231891d Bump version. 2023-12-28 16:06:34 +01:00
Martin HoffmannandGitHub eaa08e7f7c Release 0.9.3. (#249)
Bug fixes

* Fixed various issues preventing building in a no-std environment.
  ([#247] by [@dzamlo], [#248] by [@reitermarkus])

Other changes

* The `resolv` feature now depends on `futures_util` instead of `futures`,
  trimming unused dependencies from the dependency tree. ([#246] by
  [@WhyNotHugo])
v0.9.3
2023-12-28 16:03:59 +01:00
Martin Hoffmann 8d7b689b89 Merge branch 'main' of github.com:NLnetLabs/domain 2023-12-28 15:54:42 +01:00
Martin Hoffmann 99950c03c1 Update changelog. 2023-12-28 15:54:33 +01:00
Loïc DamienandGitHub ee3fa26569 Compile in no_std context (#247)
Fixed issues preventing building in a no-std environment.
2023-12-28 15:51:52 +01:00
Markus ReiterandGitHub aad195601e Fix no_std. (#248)
Fixes various issues preventing building in a no-std environment.
2023-12-28 15:48:47 +01:00
Martin Hoffmann e96ce12ce4 Update changelog. 2023-12-08 14:39:27 +01:00
HugoandGitHub fc8e989134 Replace futures dependency with futures_util (#246)
The latter is sufficient, and the former pulls over a dozen additional
unused dependencies.
2023-12-08 14:37:02 +01:00
Martin Hoffmann 8ed1e438a8 Bump version. 2023-11-16 16:29:35 +01:00
Martin HoffmannandGitHub df7e20c6a2 Release 0.9.2. (#243)
New

* Removed the `Sized` bound for octets types used by the `tsig` module.
  ([#241] by [@torin-carey])
* Added an impl for `AsRef<Message<[u8]>>` for any message. ([#242] by
  [@torin-carey])

Bug fixes

* Fixed in scanning absolute domain names from a zonefile that resulted
  in illegal wire data being produced. ([#240] by [@xofyarg)]
v0.9.2
2023-11-16 16:26:19 +01:00
Martin Hoffmann f3dd13b335 Update changelog. 2023-11-16 15:28:02 +01:00
xofyargandGitHub c54c7f7874 Fix a bug in dname scanning (#240)
The PR fixes an issue in scanning absolute domain names from a zonefile.
2023-11-16 14:37:32 +01:00
Martin Hoffmann b279c077ce Update changelog. 2023-11-13 17:29:10 +01:00
Torin CareyandGitHub 37d60e53f8 Add AsRef<Message<[u8]>> implementation for Message<Octs> (#242)
The reference type &Message<[u8]> makes for a suitable borrowed form for
the Message<Octs> type.
2023-11-13 17:26:14 +01:00
Torin CareyandGitHub 5987386276 Remove Sized constraint from tsig module types. (#241)
Currently the requirement of sized types means that Message<[u8]> cannot
be used in tsig operations.
2023-11-13 17:23:58 +01:00
Martin Hoffmann 337d0364a4 Bump version. 2023-10-27 11:25:27 +02:00
Martin HoffmannandGitHub 819bf1b22b Release 0.9.1. (#239)
Bug fixes

* Added missing `?Sized` bounds to the octets type for parsing
  `ZoneRecordData` and `UnknownRecordData`. ([#237] by [@hunts])
v0.9.1
2023-10-27 11:23:17 +02:00
Martin Hoffmann 2a6076f061 Update changelog. 2023-10-26 11:42:51 +02:00
Minghang ChenandGitHub 821b509762 Support unsized octets in parsing ZoneRecordData and UnknownRecordData (#237)
This PR adds `?Sized` bounds to the octets type for parsing ZoneRecordData
and UnknownRecordData.
2023-10-26 11:41:04 +02:00
Martin Hoffmann c20176b773 Bump version. 2023-10-18 12:03:29 +02:00
Martin Hoffmann c8c51a5a6a Update changelog. v0.9.0 2023-10-18 12:00:46 +02:00
Martin HoffmannandGitHub 128552683d Upgrade minimum Rust version to 1.67. (#235)
This PR upgrades the minimum Rust version to 1.67 due to some dependencies requiring that.
2023-10-18 11:58:37 +02:00
Martin HoffmannandGitHub 45d9a97ac5 Prepare for release 0.9.0. (#234)
Breaking changes

* Move the `flatten_into` method for converting domain names into a
  straight, flat form into a new `FlattenInto` trait. This trait is only
  implemented for types that actually are or contain domain names. ([#216])
* Marked various methods and functions that return values without side
  effects as `#[must_use]`. ([#228] by [@WhyNotHugo])
* Changed the signature of `FoundSrvs::merge` to use a non-mut `other`.
  ([#232])

New

* Added support for the ZONEMD record type. ([#229] by [@xofyarg])
* Re-exported the _octseq_ crate as `dep::octseq`. ([#230])
* Added a blanket impl for mut refs to `Composer`. ([#231] by [@xofyarg])
2023-10-18 11:28:04 +02:00
Martin HoffmannandGitHub 454d29fbb1 Upgrade to ring 0.17. (#233) 2023-10-18 11:08:59 +02:00
Martin Hoffmann 3db82d1845 Update changelog. 2023-10-18 10:16:48 +02:00
xofyargandGitHub 1b8a37e114 Add Composer impl for mut refs. (#231)
This PR adds a blanket impl for mut refs to Composer types.
2023-10-18 10:15:33 +02:00
Martin Hoffmann 07e26639b0 Update changelog. 2023-10-17 14:56:23 +02:00
Martin HoffmannandGitHub b3b3b53bf6 Change FoundSrvs::merge signature and documentation. (#232)
This PR changes the signature of FoundSrvs::merge to use a non-mut other
and also changes the documentation to state the method doesn’t change
other which it didn’t do.
2023-10-17 14:55:16 +02:00
Martin Hoffmann 97bf460bb5 Clippy-related fixes. 2023-10-16 14:07:15 +02:00
Martin Hoffmann cc26065fb2 Clippy-related fixes (and non-fixes). 2023-10-16 14:03:31 +02:00
Martin Hoffmann d5c17b5d5f Update changelog. 2023-10-16 11:25:58 +02:00
Martin HoffmannandGitHub 420958a9e2 Re-export octseq. (#230)
This PR re-exports the octseq crate under the dep module.
2023-10-16 11:24:49 +02:00
Martin Hoffmann 1d88c3e425 Update changelog and bump version. 2023-10-05 19:12:41 +02:00
HugoandGitHub 98669b2f62 Mark function without side effects as must_use (#228)
This hint will make the compiler warn consumers of this library if they
ever call one of these functions without using its return value.
2023-10-05 19:07:40 +02:00
Martin HoffmannandGitHub 078f8e8212 Move flatten_into for flattening domain names into a trait. (#216)
This PR moves the flatten_into method present on various types that either
are or contain domain names into a FlattenInto trait. It also removes the
method from all types that aren’t or don’t contain domain names and only had
it to be able to make the big record data type enums.
2023-10-05 19:07:10 +02:00
Martin Hoffmann be6a4e510c Update changelog. 2023-09-29 12:19:37 +02:00
xofyargandGitHub 28b871f309 Add ZONEMD support. (#229)
This commit add support for ZONEMD record type, described in RFC 8976.
2023-09-29 12:15:50 +02:00
Maarten AertsenandGitHub 694e2eca67 Use dns-team@ alias 2023-09-22 13:53:09 +02:00
Martin Hoffmann e5275fa349 Bump version. 2023-09-18 16:15:07 +02:00