Registry / async / tokio-util-wasi

tokio-util-wasi

JSON →
library0.7.5rscratesunverified

Additional utilities for working with Tokio, adapted for WASI.

# Cargo.toml [dependencies] tokio-util_wasi = "0.7.5"
INSTALL
IMPORT
SIG · TOKIO-UTIL-WASI
T
tokio-util-wasi
asyncrustv0.7.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ReaderStream
use tokio_util::io::ReaderStream;

Convert a file reader into a stream of bytes.

use tokio_util::io::ReaderStream; use tokio::fs::File; #[tokio::main] async fn main() { let file = File::open("test.txt").await.unwrap(); let stream = ReaderStream::new(file); // use stream }
Debug
Known issues
gotchaRequires Tokio runtime
fix
Ensure you have a Tokio runtime, e.g., #[tokio::main]
affects: >=0.7.0
Upgrade
Version history
0.7.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
30
Resources
tokio-util-wasi — cargo add tokio-util-wasi · libregistry