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

#1985 in Asynchronous

Download history 6/week @ 2024-11-13 23/week @ 2024-11-20 25/week @ 2024-11-27 24/week @ 2024-12-04 22/week @ 2024-12-11 5/week @ 2024-12-18 2/week @ 2025-01-08 10/week @ 2025-01-15 24/week @ 2025-01-29 29/week @ 2025-02-05 9/week @ 2025-02-12 13/week @ 2025-02-26

54 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
~126K SLoC