Crates.io | agnostic-lite |
lib.rs | agnostic-lite |
version | |
source | src |
created_at | 2024-03-13 08:34:22.838674 |
updated_at | 2024-10-06 19:38:07.002867 |
description | `agnostic-lite` is WASM friendly and light version of `agnostic`, for users who want to write async runtime-agnostic crate. |
homepage | https://github.com/al8n/agnostic |
repository | https://github.com/al8n/agnostic |
max_upload_size | |
id | 1171524 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
agnostic-lite
is WASM friendly and light version of agnostic
, for users who want to write async runtime-agnostic crate.
English | 简体中文
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 tasksAsyncLocalSpawner
: trait for spawning local tasksAsyncSleep
: trait for sleep functionalityAsyncInterval
: trait for interval functionalityAsyncTimeout
: trait for timeout functionalityBuiltin supports runtimes:
tokio
async-std
smol
wasm-bindgen-futures
[dependencies]
agnostic-lite = "0.2"
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) 2024 Al Liu.