| Crates.io | agnostic-lite |
| lib.rs | agnostic-lite |
| version | 0.5.6 |
| created_at | 2024-03-13 08:34:22.838674+00 |
| updated_at | 2025-06-26 15:37:02.820318+00 |
| description | `agnostic-lite` is an agnostic abstraction layer for any async runtime. |
| homepage | https://github.com/al8n/agnostic |
| repository | https://github.com/al8n/agnostic |
| max_upload_size | |
| id | 1171524 |
| size | 200,854 |
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 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 functionalityBuiltin supports runtimes:
tokioasync-stdsmolwasm-bindgen-futures[dependencies]
agnostic-lite = "0.5"
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.