Skip to content

Commit

Permalink
conditionally compile the IntoVec types
Browse files Browse the repository at this point in the history
  • Loading branch information
mycognosist committed Jun 12, 2024
1 parent 72b4874 commit 5f29177
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/local_nb/consumer.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
#[cfg(any(feature = "std", feature = "alloc"))]
mod into_vec;
#[cfg(any(feature = "std", feature = "alloc"))]
mod into_vec_fallible;

mod invariant;
mod invariant_noop;
mod slice_consumer;

#[cfg(feature = "dev")]
mod scramble;

#[cfg(any(feature = "std", feature = "alloc"))]
pub use into_vec::IntoVec;
#[cfg(any(feature = "std", feature = "alloc"))]
pub use into_vec_fallible::IntoVecFallible;

pub use slice_consumer::SliceConsumer;

#[cfg(feature = "dev")]
Expand Down
6 changes: 6 additions & 0 deletions src/sync/consumer.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
#[cfg(any(feature = "std", feature = "alloc"))]
mod into_vec;
#[cfg(any(feature = "std", feature = "alloc"))]
mod into_vec_fallible;

mod invariant;
mod invariant_noop;
mod slice_consumer;

#[cfg(feature = "dev")]
mod scramble;

#[cfg(any(feature = "std", feature = "alloc"))]
pub use into_vec::IntoVec;
#[cfg(any(feature = "std", feature = "alloc"))]
pub use into_vec_fallible::{IntoVecError, IntoVecFallible};

pub use slice_consumer::{SliceConsumer, SliceConsumerFullError};

#[cfg(feature = "dev")]
Expand Down

0 comments on commit 5f29177

Please sign in to comment.