runite-proc-macros
Procedural macros that back the runite async
runtime.
This crate is an implementation detail of
runiteand is not intended for direct consumption. Do not depend on it directly. Addruniteinstead and use the macros through it — for example#[runite::main]. The macros expand to code that referencesrunite's internals, so they only work whenruniteis a dependency, and the API offered here may change without a major version bump of this crate.
Usage
Add runite (not this crate) to your Cargo.toml:
[]
= "0.1"
Then annotate your entry point. #[runite::main] works for both synchronous and
async fn main, inspecting the signature and driving the runtime accordingly:
async
See the runite crate documentation for the full
guide.
License
Licensed under either of MIT or Apache-2.0 at your option. See the runite repository for license texts.