Skip to content

Commit 4e44e6f

Browse files
committed
Inline the re-exports
Group and add `doc(inline)` attribute. From local testing the only thing that changes is that `Scalar` is put in the structs section instead of the Re-exports section. I found that adding the attribute to the other public re-exports had no effect.
1 parent 8a73ead commit 4e44e6f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/lib.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,18 @@ pub use secp256k1_sys as ffi;
197197

198198
#[cfg(all(feature = "global-context", feature = "std"))]
199199
pub use crate::context::global::{self, SECP256K1};
200-
pub use crate::context::{
201-
rerandomize_global_context, with_global_context, with_raw_global_context, AllPreallocated,
202-
Context, PreallocatedContext, SignOnlyPreallocated, Signing, Verification,
203-
VerifyOnlyPreallocated,
204-
};
205200
#[cfg(feature = "alloc")]
206201
pub use crate::context::{All, SignOnly, VerifyOnly};
207-
pub use crate::key::{InvalidParityValue, Keypair, Parity, PublicKey, SecretKey, XOnlyPublicKey};
208-
pub use crate::scalar::Scalar;
202+
#[doc(inline)]
203+
pub use crate::{
204+
context::{
205+
rerandomize_global_context, with_global_context, with_raw_global_context, AllPreallocated,
206+
Context, PreallocatedContext, SignOnlyPreallocated, Signing, Verification,
207+
VerifyOnlyPreallocated,
208+
},
209+
key::{InvalidParityValue, Keypair, Parity, PublicKey, SecretKey, XOnlyPublicKey},
210+
scalar::Scalar,
211+
};
209212

210213
/// Trait describing something that promises to be a 32-byte uniformly random number.
211214
///

0 commit comments

Comments
 (0)