4 releases (breaking)

0.4.0 Jun 2, 2023
0.3.0 Feb 20, 2023
0.2.0 Jan 17, 2023
0.1.0 Jan 2, 2023

#1478 in Asynchronous

Download history 6/week @ 2023-12-18 21/week @ 2024-02-19 26/week @ 2024-02-26 10/week @ 2024-03-04 14/week @ 2024-03-11 18/week @ 2024-03-18 17/week @ 2024-03-25 31/week @ 2024-04-01

82 downloads per month
Used in 5 crates

Apache-2.0 OR BSL-1.0 OR MIT

16KB
225 lines

async_main

Runtime-agnostic async main proc macro


lib.rs:

Runtime-agnostic async main proc macro. Currently, this crate only supports single-threaded task pools, but in a future version will add a configuration option to enable multi-threaded task pools.

Getting Started

Choose a runtime by enabling one of the following features:

  • async-executor
  • async-std
  • futures
  • pasts
  • tokio

Dependencies

~0–12MB
~120K SLoC