6 releases
Uses new Rust 2024
0.5.5 | Feb 24, 2025 |
---|---|
0.4.0 | Jan 27, 2025 |
0.3.17 | Dec 22, 2024 |
0.3.16 | Oct 6, 2024 |
0.3.13 |
|
#2272 in Asynchronous
3,576 downloads per month
Used in 25 crates
(11 directly)
175KB
4.5K
SLoC
Agnostic-Lite
agnostic-lite
is an agnostic abstraction layer for any async runtime.
In order to make it trivial for others to build implementations of any async runtime, this crate provides an abstraction layer implementation.
In addition, this crate is not only no_std
, but also alloc-free. This means that it can be used in environments where alloc is not available, such as embedded systems. It also has no unsafe code.
Introduction
agnostic-lite
is an agnostic abstraction layer for any async runtime.
In order to make it trivial for others to build implementations of any async runtime, this crate provides an abstraction layer implementation.
In addition, this crate is not only no_std
, but also alloc-free. This means that it can be used in environments where alloc is not available, such as embedded systems. It also has no unsafe code.
agnostic-lite
splits the big Runtime
trait in agnostic
in multiple small traits:
AsyncSpawner
: trait for spawning tasksAsyncLocalSpawner
: trait for spawning local tasksAsyncSleep
: trait for sleep functionalityAsyncInterval
: trait for interval functionalityAsyncTimeout
: trait for timeout functionality
Builtin supports runtimes:
tokio
async-std
smol
wasm-bindgen-futures
Installation
[dependencies]
agnostic-lite = "0.5"
License
agnostic-lite
is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2025 Al Liu.
Dependencies
~0.8–13MB
~175K SLoC