Skip to content

Commit

Permalink
release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Jun 5, 2024
1 parent b3a9d20 commit d511f14
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
# Changelog

## Unreleased

## 10.0.0 (unreleased)

- string values are `&str`, not `CStr`
- returning `CStr` was ugly but necessary while c-ares made no promises about
the values that it returned
- from its release 1.17.2 c-ares verifies that hostnames are strings, and from
its 1.30.0 it makes the same check for other DNS strings
- therefore this wrapper now prefers to return native rust `&str`
- when using a new enough version of c-ares we trust the c-ares validation,
and make unchecked conversions from C strings to `&str`
- when using older c-ares we make a fallible conversion, and `unwrap()` the
result
- therefore if you are using old c-ares and new rust-c-ares and you are
talking to a server that returns invalid DNS strings: you may see panics
- solve this by using a newer c-ares, or an older rust-c-ares, or by fixing
your DNS server
- CAA record value is bytes, not a string
- c-ares 1.30.0

## 9.2.1 (26 May 2024)

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "c-ares"
license = "MIT"
version = "9.2.1"
version = "10.0.0"
authors = ["David Hotham"]
description = """
A Rust wrapper for the c-ares library, for asynchronous DNS requests.
Expand Down

0 comments on commit d511f14

Please sign in to comment.