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

release 7.6.0 #26

Merged
merged 1 commit into from
Oct 14, 2023
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: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Changelog

## Unreleased
## 7.6.0 (14 Oct 2023)

- Drop crossbeam-channel in favour of standard library channels
- As of 1.67.0, the standard library's implementation is based on
crossbeam-channel
- Take upstream c-ares 1.19.0
- Introduces `Options::set_udp_max_queries()`

## 7.5.0 (29 Jan 2023)

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-resolver"
license = "MIT"
version = "7.5.0"
version = "7.6.0"
authors = ["David Hotham"]
description = """
An asynchronous DNS resolver, backed by c-ares.
Expand All @@ -15,7 +15,7 @@ edition = "2021"
include = ["src/**/*", "LICENSE.txt", "README.md", "CHANGELOG.md"]

[dependencies]
c-ares = "7.6.0"
c-ares = "7.7.0"
futures-channel = "0.3.9"
polling = "3.1.0"

Expand Down
36 changes: 22 additions & 14 deletions src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,6 @@ impl Options {
self
}

/// The path to use for reading the resolv.conf file. The `resolvconf_path` should be set to a
/// path string, and will be honoured on *nix like systems. The default is /etc/resolv.conf.
pub fn set_resolvconf_path(&mut self, resolvconf_path: &str) -> &mut Self {
self.inner.set_resolvconf_path(resolvconf_path);
self
}

/// The path to use for reading the hosts file. The `hosts_path` should be set to a
/// path string, and will be honoured on *nix like systems. The default is /etc/hosts.
pub fn set_hosts_path(&mut self, hosts_path: &str) -> &mut Self {
self.inner.set_hosts_path(hosts_path);
self
}

/// Set the socket send buffer size.
pub fn set_sock_send_buffer_size(&mut self, size: u32) -> &mut Self {
self.inner.set_sock_send_buffer_size(size);
Expand Down Expand Up @@ -117,6 +103,28 @@ impl Options {
self.inner.set_ednspsz(size);
self
}

/// The path to use for reading the resolv.conf file. The `resolvconf_path` should be set to a
/// path string, and will be honoured on *nix like systems. The default is /etc/resolv.conf.
pub fn set_resolvconf_path(&mut self, resolvconf_path: &str) -> &mut Self {
self.inner.set_resolvconf_path(resolvconf_path);
self
}

/// The path to use for reading the hosts file. The `hosts_path` should be set to a
/// path string, and will be honoured on *nix like systems. The default is /etc/hosts.
pub fn set_hosts_path(&mut self, hosts_path: &str) -> &mut Self {
self.inner.set_hosts_path(hosts_path);
self
}

/// The maximum number of udp queries that can be sent on a single ephemeral port to a given
/// DNS server before a new ephemeral port is assigned. Any value of 0 or less will be
/// considered unlimited, and is the default.
pub fn set_udp_max_queries(&mut self, udp_max_queries: i32) -> &mut Self {
self.inner.set_udp_max_queries(udp_max_queries);
self
}
}

/// An asynchronous DNS resolver, which returns results via callbacks.
Expand Down