15 个版本
0.0.16 | 2024 年 6 月 17 日 |
---|---|
0.0.15 | 2024 年 4 月 14 日 |
0.0.12 | 2023 年 12 月 25 日 |
#5 在 #smol
213 每月下载量
用于 20 个 crate (5 直接)
53KB
1.5K SLoC
Product OS : Async Executor
Product OS : Async Executor 提供了一套工具来通用处理异步执行,以便可以在编译时选择要使用的所需异步库(例如 tokio、smol)。
什么是 Product OS?
Product OS 是一系列包的集合,提供不同的工具和功能,可以协同工作,以便更容易地为 Rust 生态系统构建产品。
安装
使用 Rust 包管理器 cargo 安装 Product OS : Async Executor。
cargo add product-os-async-executor
或将 Product OS : Async Executor 添加到您的 cargo.toml [packages]
部分。
product-os-async-executor = { version = "0.0.16", features = [], default-features = true, optional = false }
功能
Product OS Async Executor 支持许多功能,利用现有的 Rust 库以通用方式管理执行器,包括
- 处理附加异步库实现的特制
- 开箱即用支持 tokio 和 smol,对 async_std 有部分支持
- 支持一次性定时器和间隔定时器
- 提供一些用于跨异步运行时的 AsyncRead 和 AsyncWrite 特质
- 支持仅 alloc 的 no_std 环境
// Feature samples TODO
用法
// Examples TODO
贡献
贡献目前不可用,但很快将在公共存储库中可用。
许可
依赖
~2–17MB
~177K SLoC