@@ -23,7 +23,6 @@ mod macros;
23
23
pub mod types;
24
24
25
25
#[ cfg( feature = "recovery" ) ]
26
- #[ cfg_attr( docsrs, doc( cfg( feature = "recovery" ) ) ) ]
27
26
pub mod recovery;
28
27
29
28
use core:: { slice, ptr} ;
@@ -813,7 +812,6 @@ extern "C" {
813
812
///
814
813
/// The newly created secp256k1 raw context.
815
814
#[ 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) ) ) ) ) ]
817
815
pub unsafe fn secp256k1_context_create ( flags : c_uint ) -> NonNull < Context > {
818
816
rustsecp256k1_v0_8_1_context_create ( flags)
819
817
}
@@ -824,7 +822,6 @@ pub unsafe fn secp256k1_context_create(flags: c_uint) -> NonNull<Context> {
824
822
#[ no_mangle]
825
823
#[ allow( clippy:: missing_safety_doc) ] // Documented above.
826
824
#[ 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) ) ) ) ) ]
828
825
pub unsafe extern "C" fn rustsecp256k1_v0_8_1_context_create ( flags : c_uint ) -> NonNull < Context > {
829
826
use core:: mem;
830
827
use crate :: alloc:: alloc;
@@ -857,15 +854,13 @@ pub unsafe extern "C" fn rustsecp256k1_v0_8_1_context_create(flags: c_uint) -> N
857
854
///
858
855
/// `ctx` must be a valid pointer to a block of memory created using [`secp256k1_context_create`].
859
856
#[ 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) ) ) ) ) ]
861
857
pub unsafe fn secp256k1_context_destroy ( ctx : NonNull < Context > ) {
862
858
rustsecp256k1_v0_8_1_context_destroy ( ctx)
863
859
}
864
860
865
861
#[ no_mangle]
866
862
#[ allow( clippy:: missing_safety_doc) ] // Documented above.
867
863
#[ 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) ) ) ) ) ]
869
864
pub unsafe extern "C" fn rustsecp256k1_v0_8_1_context_destroy ( mut ctx : NonNull < Context > ) {
870
865
use crate :: alloc:: alloc;
871
866
secp256k1_context_preallocated_destroy ( ctx) ;
0 commit comments