flarch_macro

Crates.ioflarch_macro
lib.rsflarch_macro
version0.8.0
sourcesrc
created_at2024-09-09 11:58:36.52416
updated_at2024-09-09 11:58:36.52416
descriptionArch-dependant macros
homepagehttps://fledg.re
repositoryhttps://github.com/ineiti/fledger
max_upload_size
id1369182
size3,092
Linus Gasser (ineiti)

documentation

README

flarch_macro

This holds the macro for defining an async_trait either with or without the Send trait. You can use it like this:

#[platform_async_trait()]
impl SubsystemHandler<Message> for SomeBroker {
    async fn messages(&mut self, _: Vec<Message>) -> Vec<Message> {
        todo!();
    }
}

Depending on wasm or unix, it will either remove or keep the Send trait.

Commit count: 223

cargo fmt