Skip to content

Commit f30cf8e

Browse files
Urgaumichaelwoerister
authored andcommitted
Properly expose SipHasher128 and StableSipHasher128
1 parent 916f754 commit f30cf8e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/lib.rs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ mod int_overflow;
66
mod sip128;
77
mod stable_hasher;
88

9+
/// Hashers collection
10+
pub mod hashers {
11+
#[doc(inline)]
12+
pub use super::sip128::SipHasher128;
13+
14+
/// Stable 128-bits Sip Hasher
15+
///
16+
/// [`StableHasher`] version of [`SipHasher128`].
17+
///
18+
/// [`StableHasher`]: super::StableHasher
19+
pub type StableSipHasher128 = super::StableHasher<SipHasher128>;
20+
}
21+
922
#[doc(inline)]
1023
pub use stable_hasher::StableHasher;
1124

@@ -15,7 +28,5 @@ pub use stable_hasher::StableHasherResult;
1528
#[doc(inline)]
1629
pub use stable_hasher::ExtendedHasher;
1730

18-
pub use sip128::SipHasher128; // TODO: Should SipHasher128 be exposed?
19-
20-
/// Stable Sip Hasher 128
21-
pub type StableSipHasher128 = StableHasher<SipHasher128>;
31+
#[doc(inline)]
32+
pub use hashers::StableSipHasher128;

0 commit comments

Comments
 (0)