| Crates.io | acceptor-std |
| lib.rs | acceptor-std |
| version | 0.0.1 |
| created_at | 2025-12-01 07:34:39.657896+00 |
| updated_at | 2025-12-01 07:34:39.657896+00 |
| description | std-based acceptors built on the accepts core traits |
| homepage | https://github.com/acceptor-rs/acceptor-std |
| repository | https://github.com/acceptor-rs/acceptor-std |
| max_upload_size | |
| id | 1959405 |
| size | 24,942 |
acceptor-std is a std-powered bundle of acceptors built on the accepts core traits. It adds acceptors that require the standard library (e.g., std::sync::mpsc).
⚠️ Pre-release: version 0.0.1 is experimental. APIs and crate layout may change without backward compatibility guarantees.
[dependencies]
acceptor-std = "0.0.1"
std::sync::mpsc::Sender and print the send resultuse std::sync::mpsc::channel;
use acceptor_std::{MpscSender, DebugPrinter};
use accepts::Accepts;
let (tx, rx) = channel();
let sender = MpscSender::new(tx, DebugPrinter);
sender.accept(10);
sender.accept(20);
drop(sender); // close the channel
assert_eq!(rx.recv().unwrap(), 10);
assert_eq!(rx.recv().unwrap(), 20);
| acceptor-std | accepts |
|---|---|
| 0.0.1 | 0.0.2 |
See ARCHITECTURE.md for design notes and the broader acceptor series lineup.
MIT OR Apache-2.0