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

stil c-ares 1.32 #110

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 10.1.0 (3 July 2024)

- c-ares 1.32.0

## 10.0.0 (7 June 2024)

- string values are `&str`, not `CStr`
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "c-ares"
license = "MIT"
version = "10.0.0"
version = "10.1.0"
authors = ["David Hotham"]
description = """
A Rust wrapper for the c-ares library, for asynchronous DNS requests.
Expand All @@ -25,7 +25,7 @@ features = ["vendored"]

[dependencies]
bitflags = "2.0"
c-ares-sys = { version = "9.2.0", path = "c-ares-sys", default-features = false }
c-ares-sys = { version = "9.5.0", path = "c-ares-sys", default-features = false }
c-types = "3.0.0"
itertools = "0.13"

Expand Down
12 changes: 11 additions & 1 deletion src/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,17 @@ bitflags!(
/// for writing clients which might be used to test or debug name servers.
const NOCHECKRESP = c_ares_sys::ARES_FLAG_NOCHECKRESP;

/// Use Extension Mechanisms for DNS.
/// Include an EDNS pseudo-resource record (RFC 2671) in generated requests. As of c-ares
/// v1.22, this is on by default if flags are otherwise not set.
const EDNS = c_ares_sys::ARES_FLAG_EDNS;

/// Do not attempt to add a default local named server if there are no other servers
/// available. Instead, fail initialization with ARES_ENOSERVER.
const NO_DFLT_SVR = c_ares_sys::ARES_FLAG_NO_DFLT_SVR;

/// Enable support for DNS 0x20 as per
/// https://datatracker.ietf.org/doc/html/draft-vixie-dnsext-dns0x20-00 which adds
/// additional entropy to the request by randomizing the case of the query name.
const DNS_0X20 = c_ares_sys::ARES_FLAG_DNS0x20;
}
);