Skip to content

Commit 8e48e15

Browse files
committed
Merge #625: Remove docsrs cfg_attributes
81b154f Remove docsrs cfg_attributes (Tobin C. Harding) Pull request description: 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. Found in CI fail of #624 ACKs for top commit: sanket1729: utACK 81b154f. I don't follow this completely, but yay for removing unnecessary code. apoelstra: ACK 81b154f Tree-SHA512: 9decdc3f71d8f592047eee89f7f4aaf3a08b2643148c6bc5ad7de9edf61acab0ee56bf3c6dbc14493a9d089d492e31f1d379539e256b5eb96c8873c3be702256
2 parents 9b76e13 + 81b154f commit 8e48e15

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

secp256k1-sys/src/lib.rs

-5
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)