Basu
A flexible event bus crate enables decoupling between different components of an application through the event-driven pattern.
Basu provides support for both asynchronous and synchronous event handling.
Example
Sync
Make sure you disable default-features of the basu crate on Cargo.toml:
[]
= { = "0.1.0", = false, = ["sync"] }
Async
To use Basu in your Rust project, add the following line to your Cargo.toml file:
[]
= "0.1.0"
Usage:
use ;
;
// Implement the Handle trait for your event handler structs
async
License
This project is licensed under the MIT license.