From dd277a10fb17df642b5780b811e8f8f74258d7af Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 7 Oct 2025 13:28:07 +1100 Subject: [PATCH 1/4] Remove doc_auto_cfg Seems this has been removed and recent nightly compiler won't build this crate as is. Some random post says use `doc_cfg` instead but we have that already so just remove the `doc_auto_cfg`. I didn't think too hard about this. ref: https://users.rust-lang.org/t/fallout-from-removal-of-doc-auto-cfg/134435 --- src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 77f6256..716dcf9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -69,7 +69,6 @@ #![no_std] // Experimental features we need. #![cfg_attr(docsrs, feature(doc_cfg))] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Coding conventions #![warn(missing_docs)] From c49294989e84f2bc58aba84e712a035c06e3fc4a Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 7 Oct 2025 13:33:32 +1100 Subject: [PATCH 2/4] Remove pub(crate) export of macro This macro is only used in the file it is defined, remove the unnecessary re-export. Found by recent nightly `clippy`. --- src/error.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index ab28fbe..b5f2c6e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -63,7 +63,6 @@ macro_rules! write_err { } } } -pub(crate) use write_err; /// Error returned when hex decoding a hex string with variable length. /// From b97cb99d9c365fd65f2da07c4b4f43dd4d3130da Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 7 Oct 2025 13:44:01 +1100 Subject: [PATCH 3/4] Add unexpected_cfgs lint config Recent clippy is erroring with: error: unexpected `cfg` condition name: `rust_version` Config clippy in the manifest as is customary. --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 2274b84..9c5b68d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -176,3 +176,6 @@ used_underscore_items = "warn" verbose_bit_mask = "warn" wildcard_imports = "warn" zero_sized_map_values = "warn" + +[lints.rust] +unexpected_cfgs = { level = "deny", check-cfg = ['cfg(rust_version, values(">= 1.81.0"))'] } From b79a0e1db94adb2855f6dfbde29d6b3f80750e62 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 7 Oct 2025 13:29:48 +1100 Subject: [PATCH 4/4] Manually update nightly Update nightly to verify that it builds now that `doc_auto_cfg` has been removed. --- nightly-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nightly-version b/nightly-version index 952e0e5..d9c75e4 100644 --- a/nightly-version +++ b/nightly-version @@ -1 +1 @@ -nightly-2025-02-14 +nightly-2025-10-03