diff --git a/src/binding/http/mod.rs b/src/binding/http/mod.rs new file mode 100644 index 0000000..bfe4338 --- /dev/null +++ b/src/binding/http/mod.rs @@ -0,0 +1,5 @@ +pub static SPEC_VERSION_HEADER: &str = "ce-specversion"; + +pub fn header_prefix(name: &str) -> String { + super::header_prefix("ce-", name) +} diff --git a/src/binding/mod.rs b/src/binding/mod.rs index 36c0d36..6316137 100644 --- a/src/binding/mod.rs +++ b/src/binding/mod.rs @@ -2,6 +2,8 @@ #[cfg(feature = "actix")] pub mod actix; +#[cfg(any(feature = "actix", feature = "warp", feature = "reqwest"))] +pub mod http; #[cfg(feature = "rdkafka")] pub mod rdkafka; #[cfg(feature = "reqwest")] @@ -17,14 +19,6 @@ pub(crate) mod kafka { } } -#[cfg(any(feature = "actix", feature = "warp", feature = "reqwest"))] -pub(crate) mod http { - pub static SPEC_VERSION_HEADER: &str = "ce-specversion"; - pub fn header_prefix(name: &str) -> String { - super::header_prefix("ce-", name) - } -} - #[cfg(any(feature = "actix", feature = "warp"))] #[macro_export] macro_rules! str_to_header_value {