diff --git a/src/frame/data.rs b/src/frame/data.rs index 5ed3c31b5..afa047b3e 100644 --- a/src/frame/data.rs +++ b/src/frame/data.rs @@ -117,7 +117,7 @@ impl Data { } impl Data { - pub(crate) fn load(head: Head, mut payload: Bytes) -> Result { + pub fn load(head: Head, mut payload: Bytes) -> Result { let flags = DataFlags::load(head.flag()); // The stream identifier must not be zero diff --git a/src/frame/headers.rs b/src/frame/headers.rs index a0f282e36..9df53d723 100644 --- a/src/frame/headers.rs +++ b/src/frame/headers.rs @@ -254,7 +254,7 @@ impl Headers { &mut self.header_block.pseudo } - pub(crate) fn pseudo(&self) -> &Pseudo { + pub fn pseudo(&self) -> &Pseudo { &self.header_block.pseudo } diff --git a/src/lib.rs b/src/lib.rs index 3d59ef21e..fbc03d80c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -108,8 +108,14 @@ macro_rules! ready { #[cfg_attr(feature = "unstable", allow(missing_docs))] mod codec; mod error; + +#[cfg(not(feature = "unstable"))] mod hpack; +#[cfg(feature = "unstable")] +#[allow(missing_docs)] +pub mod hpack; + #[cfg(not(feature = "unstable"))] mod proto;