From c32cc43dc16d9b2210c6c137f313c23658a8b9ac Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 13 Jul 2023 10:36:58 +1000 Subject: [PATCH] Remove docsrs cfg_attributes We no longer need to manually configure the docsrs build to highlight feature guards since we use the `doc_auto_cfg` feature. Somehow when we added usage of that feature we forgot to remove the other attributes. --- secp256k1-sys/src/lib.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/secp256k1-sys/src/lib.rs b/secp256k1-sys/src/lib.rs index b8fe9038f..02e555cfc 100644 --- a/secp256k1-sys/src/lib.rs +++ b/secp256k1-sys/src/lib.rs @@ -23,7 +23,6 @@ mod macros; pub mod types; #[cfg(feature = "recovery")] -#[cfg_attr(docsrs, doc(cfg(feature = "recovery")))] pub mod recovery; use core::{slice, ptr}; @@ -813,7 +812,6 @@ extern "C" { /// /// The newly created secp256k1 raw context. #[cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))] -#[cfg_attr(docsrs, doc(cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))))] pub unsafe fn secp256k1_context_create(flags: c_uint) -> NonNull { rustsecp256k1_v0_8_1_context_create(flags) } @@ -824,7 +822,6 @@ pub unsafe fn secp256k1_context_create(flags: c_uint) -> NonNull { #[no_mangle] #[allow(clippy::missing_safety_doc)] // Documented above. #[cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))] -#[cfg_attr(docsrs, doc(cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))))] pub unsafe extern "C" fn rustsecp256k1_v0_8_1_context_create(flags: c_uint) -> NonNull { use core::mem; use crate::alloc::alloc; @@ -857,7 +854,6 @@ pub unsafe extern "C" fn rustsecp256k1_v0_8_1_context_create(flags: c_uint) -> N /// /// `ctx` must be a valid pointer to a block of memory created using [`secp256k1_context_create`]. #[cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))] -#[cfg_attr(docsrs, doc(cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))))] pub unsafe fn secp256k1_context_destroy(ctx: NonNull) { rustsecp256k1_v0_8_1_context_destroy(ctx) } @@ -865,7 +861,6 @@ pub unsafe fn secp256k1_context_destroy(ctx: NonNull) { #[no_mangle] #[allow(clippy::missing_safety_doc)] // Documented above. #[cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))] -#[cfg_attr(docsrs, doc(cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))))] pub unsafe extern "C" fn rustsecp256k1_v0_8_1_context_destroy(mut ctx: NonNull) { use crate::alloc::alloc; secp256k1_context_preallocated_destroy(ctx);