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

#1647 in Asynchronous

Download history 14/week @ 2024-03-11 18/week @ 2024-03-18 17/week @ 2024-03-25 31/week @ 2024-04-01 16/week @ 2024-04-08 39/week @ 2024-04-15 21/week @ 2024-04-22 13/week @ 2024-04-29 7/week @ 2024-05-06 17/week @ 2024-05-13 21/week @ 2024-05-20 8/week @ 2024-05-27 23/week @ 2024-06-03 21/week @ 2024-06-10 239/week @ 2024-06-17 21/week @ 2024-06-24

305 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–14MB
~127K SLoC