1 unstable release
0.8.0 | Sep 9, 2024 |
---|
#2067 in Procedural macros
32 downloads per month
Used in 3 crates
(via flarch)
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
~255–710KB
~17K SLoC