acceptor is a no_std bundle of thin acceptors built on the accepts core traits (Accepts, AsyncAccepts, DynAsyncAccepts). It has no standard library or external dependencies. The singular acceptor here means “a bundle of acceptors” without implying a specific count.
⚠️ Pre-release: version 0.0.1 is experimental. APIs and crate layout may change without backward compatibility guarantees.
[dependencies]
accepts = { version = "0.0.2", default-features = false } # no_std
acceptor = { version = "0.0.1" }use acceptor::{Filter, Map, StatefulCallback};
let sink = StatefulCallback::new((), |_state: &(), v: i32| {
// terminal example without shared state
core::hint::black_box(v);
});
let pipeline = Map::new(|v: i32| v * 2, Filter::new(|v: &i32| v % 2 == 0, sink));
pipeline.accept(3); // filtered out
pipeline.accept(4); // 8 is processed| acceptor | accepts |
|---|---|
| 0.0.1 | 0.0.2 |
See ARCHITECTURE.md for naming guidelines, layout, and design notes.
MIT OR Apache-2.0