Skip to content

Commit

Permalink
Make rle decoder public (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeevm committed Feb 6, 2022
1 parent fa72873 commit ce15d0c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parquet/src/encodings/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
pub mod decoding;
pub mod encoding;
pub mod levels;
pub(crate) mod rle;
experimental_mod_crate!(rle);
14 changes: 13 additions & 1 deletion parquet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,18 @@ macro_rules! experimental_mod {
};
}

macro_rules! experimental_mod_crate {
($module:ident $(, #[$meta:meta])*) => {
#[cfg(feature = "experimental")]
#[doc(hidden)]
$(#[$meta])*
pub mod $module;
#[cfg(not(feature = "experimental"))]
$(#[$meta])*
pub(crate) mod $module;
};
}

#[macro_use]
pub mod errors;
pub mod basic;
Expand All @@ -89,7 +101,7 @@ experimental_mod!(util, #[macro_use]);
pub mod arrow;
pub mod column;
experimental_mod!(compression);
mod encodings;
experimental_mod!(encodings);
pub mod file;
pub mod record;
pub mod schema;

0 comments on commit ce15d0c

Please sign in to comment.