1 unstable release

0.8.0 Sep 9, 2024

#2267 in Procedural macros

25 downloads per month
Used in 3 crates (via flarch)

MIT/Apache

4KB

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.

Dependencies

~220–660KB
~16K SLoC