post-haste
FreeA no_std, alloc-free async Rust library for creating modular projects.
About post-haste
Post-haste is a no_std, alloc-free async Rust library designed for building highly modular codebases in resource-constrained environments. It introduces two core abstractions: Agents, which encapsulate single-responsibility functionality with a create() and run() lifecycle, and a Postmaster, which enables compile-time defined inter-agent communication via message passing. The library uses macros (init_postmaster!, addresses, payloads) to generate efficient, allocation-free communication channels, making it ideal for embedded systems, IoT devices, and other memory-limited targets. Agents register with the Postmaster and communicate via typed mailboxes, with configurable send timeouts. The project is maintained on GitHub under the MIT license.
Key Features
Pros & Cons
- No_std and alloc-free, suitable for resource-constrained targets
- Compile-time safety reduces runtime overhead
- Clear separation of concerns via single-responsibility Agents
- Async task support for concurrent agents
- Requires compile-time knowledge of all agents and payloads (not dynamic)
- Limited ecosystem and small community (8 stars on GitHub)
- Primarily targeted at embedded/constrained use cases, less flexible for general applications