From 8042d94b20bbdc1bc2c6103d8d9ce50e1c8a6e6b Mon Sep 17 00:00:00 2001 From: keepsimple1 Date: Sun, 24 Nov 2024 12:43:48 -0800 Subject: [PATCH] bump up version to 0.12.0 (#275) --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ Cargo.toml | 4 ++-- src/dns_parser.rs | 4 +++- 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c66a05..78f4f5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,29 @@ +# Version 0.12.0 (2024-11-24) + +There are no breaking changes in API. Bump the minor version due to new features and the change of rustc version. + +## Highlights + +* Support name probing and conflict resolution [RFC 6762](https://datatracker.ietf.org/doc/html/rfc6762#section-8) +* Support service liveness checking via `verify` API. [RFC 6762](https://datatracker.ietf.org/doc/html/rfc6762#section-10.4) +* rustc version changed to 1.65.0 +* performance improvements and doc updates. + +## All changes + +* 7f6c5e9 perf: avoid cloning in filtering ptr (#272) (CosminPerRam) +* e185d6f refactoring: define an enum for DNS resource record types (#274) (keepsimple1) +* d117f4f refactoring: move exec_command into Zeroconf (#273) (keepsimple1) +* 39acd80 feat: replace remaining Box with type (#271) (CosminPerRam) +* b50fe8c perf: optimize u8_slice_to_hex by replacing Vec with String (#270) (CosminPerRam) +* db545b1 doc: some spelling fixes (#269) (CosminPerRam) +* 7328f45 doc: add a table of RFC compliance details (#268) (keepsimple1) +* 1ade666 feat: verify to support Cache Flush on Failure Indication (#267) (keepsimple1) +* 8b63fd7 feat: support name probing and conflict resolution (#265) (keepsimple1) +* 429ecde dev-test: enhance test case for ipv4 only auto addr (#263) (keepsimple1) +* f902cf2 register service: apply interface selection for auto IP addr (#262) (keepsimple1) +* 0381e30 dns_cache: address record should only flush on the same network (#261) (keepsimple1) + # Version 0.11.5 (2024-09-28) This is a bugfix release. diff --git a/Cargo.toml b/Cargo.toml index 775d29b..1c87ecc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "mdns-sd" -version = "0.11.5" +version = "0.12.0" authors = ["keepsimple "] edition = "2018" rust-version = "1.65.0" license = "Apache-2.0 OR MIT" repository = "https://github.com/keepsimple1/mdns-sd" documentation = "https://docs.rs/mdns-sd" -keywords = ["mdns", "discovery", "service-discovery", "zeroconf", "dns-sd"] +keywords = ["mdns", "service-discovery", "zeroconf", "dns-sd"] categories = ["network-programming"] description = "mDNS Service Discovery library with no async runtime dependency" diff --git a/src/dns_parser.rs b/src/dns_parser.rs index 906d885..3c184d8 100644 --- a/src/dns_parser.rs +++ b/src/dns_parser.rs @@ -22,7 +22,8 @@ use std::{ time::SystemTime, }; -/// DNS resource record types +/// DNS resource record types, stored as `u16`. Can do `as u16` when needed. +/// /// See [RFC 1035 section 3.2.2](https://datatracker.ietf.org/doc/html/rfc1035#section-3.2.2) #[derive(Debug, PartialEq, Eq, Clone, Copy, PartialOrd, Ord)] #[non_exhaustive] @@ -57,6 +58,7 @@ pub enum RRType { } impl RRType { + /// Converts `u16` into `RRType` if possible. pub const fn from_u16(value: u16) -> Option { match value { 1 => Some(RRType::A),