Skip to content

Commit c1c5c07

Browse files
committed
Remove wildcard re-exports of context types
Wildcards make it hard to grep for where stuff comes from, explicit imports and re-exports are ... more explicit. Import and re-export explicitly instead of by using wildcards.
1 parent fb676dc commit c1c5c07

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use core::mem::ManuallyDrop;
55
use core::ptr::NonNull;
66

77
#[cfg(feature = "alloc")]
8-
pub use self::alloc_only::*;
8+
pub use self::alloc_only::{All, SignOnly, VerifyOnly};
99
use crate::ffi::types::{c_uint, c_void, AlignedType};
1010
use crate::ffi::{self, CPtr};
1111
use crate::{Error, Secp256k1};

src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@ pub use secp256k1_sys as ffi;
184184
#[cfg(feature = "serde")]
185185
pub use serde;
186186

187-
pub use crate::context::*;
187+
#[cfg(feature = "alloc")]
188+
pub use crate::context::{All, SignOnly, VerifyOnly};
189+
pub use crate::context::{
190+
AllPreallocated, Context, SignOnlyPreallocated, Signing, Verification, VerifyOnlyPreallocated,
191+
};
188192
use crate::ffi::types::AlignedType;
189193
use crate::ffi::CPtr;
190194
pub use crate::key::{PublicKey, SecretKey, *};

0 commit comments

Comments
 (0)