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

#1838 in Asynchronous

Download history 62/week @ 2024-07-22 23/week @ 2024-07-29 43/week @ 2024-08-05 24/week @ 2024-08-12 8/week @ 2024-08-19 32/week @ 2024-08-26 16/week @ 2024-09-02 13/week @ 2024-09-09 5/week @ 2024-09-16 42/week @ 2024-09-23 17/week @ 2024-09-30 1/week @ 2024-10-07 20/week @ 2024-10-14 13/week @ 2024-10-21 53/week @ 2024-11-04

86 downloads per month
Used in 6 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–11MB
~122K SLoC