From ea296a85eae9cc1829a5434f42a1afc4f2e3bb92 Mon Sep 17 00:00:00 2001 From: Tom Dohrmann Date: Sat, 22 Nov 2025 10:22:56 +0100 Subject: [PATCH] fix docs.rs build The doc_auto_cfg nightly feature has been replaced by doc_cfg. This caused the docs.rs build for the 0.15.3 release fail: https://docs.rs/crate/x86_64/latest/builds/2671359 --- Cargo.toml | 6 ++++-- src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bebc1037..a033b646 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,10 +32,12 @@ instructions = [] memory_encryption = [] nightly = ["const_fn", "step_trait", "abi_x86_interrupt", "asm_const"] abi_x86_interrupt = [] -# deprecated, no longer needed -const_fn = [] asm_const = [] step_trait = [] +doc_cfg = [] + +# These are deprecated and no longer needed: +const_fn = [] doc_auto_cfg = [] [package.metadata.docs.rs] diff --git a/src/lib.rs b/src/lib.rs index 08b30ee9..8153e6fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,7 @@ #![cfg_attr(not(test), no_std)] #![cfg_attr(feature = "abi_x86_interrupt", feature(abi_x86_interrupt))] #![cfg_attr(feature = "step_trait", feature(step_trait))] -#![cfg_attr(feature = "doc_auto_cfg", feature(doc_auto_cfg))] +#![cfg_attr(feature = "doc_cfg", feature(doc_cfg))] #![warn(missing_docs)] #![deny(missing_debug_implementations)] #![deny(unsafe_op_in_unsafe_fn)]