runite-proc-macros 0.1.0

Procedural macros (#[runite::main]) for the runite async runtime. Use via the runite crate; not intended for direct consumption.
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 11.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 296.53 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • willmtemple/runite
    0 0 20
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • willmtemple

runite-proc-macros

Procedural macros that back the runite async runtime.

This crate is an implementation detail of runite and is not intended for direct consumption. Do not depend on it directly. Add runite instead and use the macros through it — for example #[runite::main]. The macros expand to code that references runite's internals, so they only work when runite is 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:

[dependencies]
runite = "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:

#[runite::main]
async fn main() {
    // your async application
}

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.