Skip to content

Commit 81b154f

Browse files
committed
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.
1 parent 31237ff commit 81b154f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

secp256k1-sys/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ mod macros;
2323
pub mod types;
2424

2525
#[cfg(feature = "recovery")]
26-
#[cfg_attr(docsrs, doc(cfg(feature = "recovery")))]
2726
pub mod recovery;
2827

2928
use core::{slice, ptr};
@@ -813,7 +812,6 @@ extern "C" {
813812
///
814813
/// The newly created secp256k1 raw context.
815814
#[cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))]
816-
#[cfg_attr(docsrs, doc(cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))))]
817815
pub unsafe fn secp256k1_context_create(flags: c_uint) -> NonNull<Context> {
818816
rustsecp256k1_v0_8_1_context_create(flags)
819817
}
@@ -824,7 +822,6 @@ pub unsafe fn secp256k1_context_create(flags: c_uint) -> NonNull<Context> {
824822
#[no_mangle]
825823
#[allow(clippy::missing_safety_doc)] // Documented above.
826824
#[cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))]
827-
#[cfg_attr(docsrs, doc(cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))))]
828825
pub unsafe extern "C" fn rustsecp256k1_v0_8_1_context_create(flags: c_uint) -> NonNull<Context> {
829826
use core::mem;
830827
use crate::alloc::alloc;
@@ -857,15 +854,13 @@ pub unsafe extern "C" fn rustsecp256k1_v0_8_1_context_create(flags: c_uint) -> N
857854
///
858855
/// `ctx` must be a valid pointer to a block of memory created using [`secp256k1_context_create`].
859856
#[cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))]
860-
#[cfg_attr(docsrs, doc(cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))))]
861857
pub unsafe fn secp256k1_context_destroy(ctx: NonNull<Context>) {
862858
rustsecp256k1_v0_8_1_context_destroy(ctx)
863859
}
864860

865861
#[no_mangle]
866862
#[allow(clippy::missing_safety_doc)] // Documented above.
867863
#[cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))]
868-
#[cfg_attr(docsrs, doc(cfg(all(feature = "alloc", not(rust_secp_no_symbol_renaming)))))]
869864
pub unsafe extern "C" fn rustsecp256k1_v0_8_1_context_destroy(mut ctx: NonNull<Context>) {
870865
use crate::alloc::alloc;
871866
secp256k1_context_preallocated_destroy(ctx);

0 commit comments

Comments
 (0)