mirror of
https://github.com/callumio/suck.git
synced 2026-03-21 22:18:10 +00:00
chore: reorganize module exports for async and sync features
This commit is contained in:
parent
79ad51772d
commit
72b87fd6e0
1 changed files with 4 additions and 0 deletions
|
|
@ -3,17 +3,21 @@
|
||||||
|
|
||||||
#[cfg(feature = "async")]
|
#[cfg(feature = "async")]
|
||||||
pub mod async_channel;
|
pub mod async_channel;
|
||||||
|
#[cfg(feature = "sync")]
|
||||||
pub mod channel;
|
pub mod channel;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
|
#[cfg(feature = "sync")]
|
||||||
pub mod traits;
|
pub mod traits;
|
||||||
|
|
||||||
#[cfg(feature = "async")]
|
#[cfg(feature = "async")]
|
||||||
pub mod asynchronous;
|
pub mod asynchronous;
|
||||||
#[cfg(feature = "sync")]
|
#[cfg(feature = "sync")]
|
||||||
pub mod sync;
|
pub mod sync;
|
||||||
|
#[cfg(any(feature = "sync", feature = "async"))]
|
||||||
pub mod types;
|
pub mod types;
|
||||||
|
|
||||||
#[cfg(feature = "async")]
|
#[cfg(feature = "async")]
|
||||||
pub use async_channel::{AsyncSourcer, AsyncSucker};
|
pub use async_channel::{AsyncSourcer, AsyncSucker};
|
||||||
|
#[cfg(feature = "sync")]
|
||||||
pub use channel::{Sourcer, Sucker};
|
pub use channel::{Sourcer, Sucker};
|
||||||
pub use error::Error;
|
pub use error::Error;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue