Crates.io | flarch_macro |
lib.rs | flarch_macro |
version | 0.8.0 |
source | src |
created_at | 2024-09-09 11:58:36.52416 |
updated_at | 2024-09-09 11:58:36.52416 |
description | Arch-dependant macros |
homepage | https://fledg.re |
repository | https://github.com/ineiti/fledger |
max_upload_size | |
id | 1369182 |
size | 3,092 |
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.