From 15c204da3b6eacde7f4483264191407fe0e65b9d Mon Sep 17 00:00:00 2001 From: Cfir Cohen Date: Tue, 10 Dec 2024 09:04:34 -0800 Subject: [PATCH 1/3] vis: make hpack mod public in 'unstable' feature set Grant h2 users access to hpack module when using the 'unstable' feature set. Signed-off-by: Cfir Cohen --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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; From 3aefc8e125c55287650688cde82bd04c2f30419b Mon Sep 17 00:00:00 2001 From: Cfir Cohen Date: Tue, 10 Dec 2024 09:06:01 -0800 Subject: [PATCH 2/3] vis: make Data::load public Grant h2 users access to frame::Data when using the 'unstable' feature set. Other frame types have similar visibility. Signed-off-by: Cfir Cohen --- src/frame/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From d7626900e0430759a16bf8544d5b1deccf7da834 Mon Sep 17 00:00:00 2001 From: Cfir Cohen Date: Fri, 10 Jan 2025 18:18:40 -0800 Subject: [PATCH 3/3] vis: make Headers::pseudo public Signed-off-by: Cfir Cohen --- src/frame/headers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }