Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump trust-dns-proto from 0.20.4 to 0.21.1 #11604

Merged
merged 8 commits into from
Mar 1, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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