Skip to content

Commit

Permalink
chore(deps): bump trust-dns-proto from 0.20.4 to 0.21.1 (#11604)
Browse files Browse the repository at this point in the history
* chore(deps): bump trust-dns-proto from 0.20.4 to 0.21.1

Bumps [trust-dns-proto](https://github.com/bluejekyll/trust-dns) from 0.20.4 to 0.21.1.
- [Release notes](https://github.com/bluejekyll/trust-dns/releases)
- [Changelog](https://github.com/bluejekyll/trust-dns/blob/main/CHANGELOG.md)
- [Commits](bluejekyll/trust-dns@v0.20.4...v0.21.1)

---
updated-dependencies:
- dependency-name: trust-dns-proto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bring up to date with breaking changes

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Szwedko <[email protected]>
  • Loading branch information
dependabot[bot] and jszwedko authored Mar 1, 2022
1 parent 27918cd commit 89ca645
Show file tree
Hide file tree
Showing 6 changed files with 234 additions and 324 deletions.
47 changes: 42 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ tikv-jemallocator = { version = "0.4.3", default-features = false, optional = tr
tokio-postgres = { version = "0.7.4", default-features = false, features = ["runtime", "with-chrono-0_4"], optional = true }
toml = { version = "0.5.8", default-features = false }
tonic = { version = "0.6", optional = true, default-features = false, features = ["transport", "codegen", "prost", "tls"] }
trust-dns-proto = { version = "0.20", features = ["dnssec"], optional = true }
trust-dns-proto = { version = "0.21", features = ["dnssec"], optional = true }
typetag = { version = "0.1.8", default-features = false }
url = { version = "2.2.2", default-features = false, features = ["serde"] }
uuid = { version = "0.8.2", default-features = false, features = ["serde", "v4"] }
Expand Down
2 changes: 1 addition & 1 deletion lib/dnsmsg-parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
[dependencies]
data-encoding = "2.2"
thiserror = "1.0"
trust-dns-proto = { version = "0.20", features = ["dnssec"] }
trust-dns-proto = { version = "0.21", features = ["dnssec"] }

[dev-dependencies]
criterion = "0.3"
Expand Down
6 changes: 4 additions & 2 deletions lib/dnsmsg-parser/src/dns_message.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use trust_dns_proto::op::ResponseCode;

pub(super) const RTYPE_MB: u16 = 7;
pub(super) const RTYPE_MG: u16 = 8;
pub(super) const RTYPE_MR: u16 = 9;
Expand Down Expand Up @@ -36,7 +38,7 @@ pub struct DnsQueryMessage {
pub struct QueryHeader {
pub id: u16,
pub opcode: u8,
pub rcode: u8,
pub rcode: ResponseCode,
pub qr: u8,
pub aa: bool,
pub tc: bool,
Expand Down Expand Up @@ -65,7 +67,7 @@ pub struct DnsUpdateMessage {
pub struct UpdateHeader {
pub id: u16,
pub opcode: u8,
pub rcode: u8,
pub rcode: ResponseCode,
pub qr: u8,
pub zone_count: u16,
pub prerequisite_count: u16,
Expand Down
Loading

0 comments on commit 89ca645

Please sign in to comment.