acceptor

Crates.ioacceptor
lib.rsacceptor
version0.0.1
created_at2025-12-01 07:33:17.234831+00
updated_at2025-12-01 07:33:17.234831+00
descriptionno_std bundle of thin acceptors built on the accepts core traits
homepagehttps://github.com/acceptor-rs/acceptor
repositoryhttps://github.com/acceptor-rs/acceptor
max_upload_size
id1959402
size75,635
Mikou (Mikou-2A)

documentation

https://docs.rs/acceptor

README

acceptor

Crates.io Docs.rs License: MIT OR Apache-2.0 CI

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.

Add the dependency

[dependencies]
accepts = { version = "0.0.2", default-features = false } # no_std
acceptor = { version = "0.0.1" }

Example: filter + map chain

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

Version map

acceptor accepts
0.0.1 0.0.2

More

See ARCHITECTURE.md for naming guidelines, layout, and design notes.

License

MIT OR Apache-2.0

Commit count: 0

cargo fmt