@@ -23,7 +23,6 @@ mod macros;
2323pub mod types;
2424
2525#[ cfg( feature = "recovery" ) ]
26- #[ cfg_attr( docsrs, doc( cfg( feature = "recovery" ) ) ) ]
2726pub mod recovery;
2827
2928use 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) ) ) ) ) ]
817815pub 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) ) ) ) ) ]
828825pub 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) ) ) ) ) ]
861857pub 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) ) ) ) ) ]
869864pub 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