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 6b754e13e8
commit faa5ba23c5
Signed by: cleslie
GPG key ID: D382C4AFEECEAA90
10 changed files with 761 additions and 189 deletions

View file

@ -32,11 +32,11 @@ suck = "*"
## Quick Start
```rust
use suck::SuckPair;
use suck::sync::StdSuck;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Create a pair
let (sucker, sourcer) = SuckPair::<i32>::pair();
// Create a pair (using default std backend)
let (sucker, sourcer) = StdSuck::<i32>::pair();
// Start producer in a thread
let producer = std::thread::spawn(move || {