yaaral

Crates.ioyaaral
lib.rsyaaral
version0.1.1
sourcesrc
created_at2024-08-27 05:47:05.04114
updated_at2024-09-11 09:07:37.40025
descriptionyet another async runtime abstraction library
homepage
repositoryhttps://gitlab.com/cyloncore/yaaral
max_upload_size
id1352927
size8,340
(cyrilleberger)

documentation

README

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-");
Commit count: 0

cargo fmt