#run-time

yaaral

yet another async runtime abstraction library

2 releases

0.1.1 Sep 11, 2024
0.1.0 Aug 27, 2024

#420 in #run-time

Download history 171/week @ 2024-08-26 149/week @ 2024-09-09 58/week @ 2024-09-16 42/week @ 2024-09-23 35/week @ 2024-09-30 17/week @ 2024-10-14

60 downloads per month
Used in 2 crates (via agent-tk)

MIT license

7KB
115 lines

stable pipeline stable pipeline docs crates.io

yaaral: yet another async runtime abstraction library

yaaral is an abstraction to select between the runtime of tokio, futures-executor and std-async. Its development is driven by the need of the auKsys and CylonCore projects. Feel free to submit any pull requests for your own needs.

How to use?

In cargo.toml:

  • use the following for support with futures-executor:
yaaral = { version = "0.1.x", features = ["futures_executor"] }
  • use the following for support with tokio:
yaaral = { version = "0.1.x", features = ["tokio"] }

In code, you can start a new runtime with:

let runtime = yaaral::Runtime::new("thread-name-");

Dependencies

~0–10MB
~112K SLoC