flarch_macro 0.8.0

Arch-dependant macros
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 3.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 270.93 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • ineiti/fledger
    20 5 15
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ineiti

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.