From d2632d3d8ab218f6cfecaac414367299cdf523c7 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 24 Jun 2024 11:49:20 +1000 Subject: [PATCH] hashes: Re-export Hkdf Re-export `Hkdf` from the crate root. While we are at it group the re-exports and skip formatting as is convention around here. --- hashes/src/lib.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hashes/src/lib.rs b/hashes/src/lib.rs index 09a57d410..a505d9759 100644 --- a/hashes/src/lib.rs +++ b/hashes/src/lib.rs @@ -126,7 +126,12 @@ pub mod siphash24; use core::{convert, fmt, hash}; -pub use hmac::{Hmac, HmacEngine}; +#[rustfmt::skip] // Keep public re-exports separate. +#[doc(inline)] +pub use self::{ + hkdf::Hkdf, + hmac::{Hmac, HmacEngine}, +}; /// A hashing engine which bytes can be serialized into. pub trait HashEngine: Clone + Default {