feat: add multiple channel providers

Each provider is enabled via a feature flag.
The currently implemented providers are:
- std::mpsc
- flume
- crossbeam_channel
This commit is contained in:
Callum Leslie 2025-09-04 09:37:55 +01:00
parent babcd7f4f7
commit f3fe41aa82
Signed by: cleslie
GPG key ID: D382C4AFEECEAA90
10 changed files with 762 additions and 191 deletions

17
src/sync/mod.rs Normal file
View file

@ -0,0 +1,17 @@
pub mod traits;
#[cfg(feature = "sync-crossbeam")]
pub mod crossbeam;
#[cfg(feature = "sync-flume")]
pub mod flume;
#[cfg(feature = "sync-std")]
pub mod std;
#[cfg(feature = "sync-flume")]
pub use flume::FlumeSuck;
#[cfg(feature = "sync-crossbeam")]
pub use crossbeam::CrossbeamSuck;
#[cfg(feature = "sync-std")]
pub use std::StdSuck;