Agnostic-Lite

`agnostic-lite` is WASM friendly and light version of `agnostic`, for users who want to write async runtime-agnostic crate. [github][Github-url] LoC [Build][CI-url] [codecov][codecov-url] [docs.rs][doc-url] [crates.io][crates-url] [crates.io][crates-url] license English | [简体中文][zh-cn-url]
## Introduction `agnostic-lite` is WASM friendly and light version of `agnostic`, for users who want to write async runtime-agnostic crate. `agnostic-lite` splits the big `Runtime` trait in `agnostic` in multiple small traits: - `AsyncSpawner`: trait for spawning tasks - `AsyncLocalSpawner`: trait for spawning local tasks - `AsyncSleep`: trait for sleep functionality - `AsyncInterval`: trait for interval functionality - `AsyncTimeout`: trait for timeout functionality Builtin supports runtimes: - `tokio` - `async-std` - `smol` - `wasm-bindgen-futures` ## Installation ```toml [dependencies] agnostic-lite = "0.2" ``` #### License `agnostic-lite` is under the terms of both the MIT license and the Apache License (Version 2.0). See [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT) for details. Copyright (c) 2024 Al Liu. [Github-url]: https://github.com/al8n/agnostic/ [CI-url]: https://github.com/al8n/agnostic/actions/workflows/ci.yml [doc-url]: https://docs.rs/agnostic-lite [crates-url]: https://crates.io/crates/agnostic-lite [codecov-url]: https://app.codecov.io/gh/al8n/agnostic/ [zh-cn-url]: https://github.com/al8n/agnostic/tree/main/agnostic-lite/README-zh_CN.md