acceptor-alloc
acceptor-alloc is an alloc-powered bundle of acceptors built on the accepts core traits. It provides acceptors that require heap-backed collections without pulling in std.
⚠️ Pre-release: version 0.0.1 is experimental. APIs and crate layout may change without backward compatibility guarantees.
Add the dependency
[]
= "0.0.1"
Example: route (Key, Value) pairs using BTreeKVRouter
use BTreeMap;
use BTreeKVRouter;
use Accepts;
;
let mut routes = new;
routes.insert;
// fallback is a no-op `()`, which implements `Accepts`.
let router = new;
router.accept; // routed to Sink
router.accept; // routed to fallback (no-op)
Version map
| acceptor-alloc | accepts |
|---|---|
| 0.0.1 | 0.0.2 |
More
See ARCHITECTURE.md for design notes and the broader acceptor series lineup.
License
MIT OR Apache-2.0