From ceefd5e25015a9b877834768a41f2c069ddccf2e Mon Sep 17 00:00:00 2001 From: Shiroko Date: Tue, 30 Sep 2025 17:41:05 +0800 Subject: [PATCH] Update feature `doc_auto_cfg` to `doc_cfg` `doc_auto_cfg` has been removed in the latest nightly, see https://github.com/rust-lang/rust/pull/138907. This feature was merged into `doc_cfg`. This fixes the rustdoc build in the latest nightly toolchain with docsrs feature enabled. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a0a56a52..13154acd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,7 +54,7 @@ #![deny(missing_docs, missing_debug_implementations, rust_2018_idioms)] // Automatically generate required OS/features for docs.rs. -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] // Disallow warnings when running tests. #![cfg_attr(test, deny(warnings))] // Disallow warnings in examples.