zruntime 0.1.0 is out: a simple, single-threaded async runtime for Rust. It grew...

@zeenix@toot.cat

zruntime 0.1.0 is out: a simple, single-threaded async runtime for Rust.

It grew out of @zbus which needed a small runtime of its own to use by default, and now lives as a crate anyone can use. A Runtime runs tasks, timers and I/O on one thread; block_on drives a future to completion while the same thread keeps everything else moving. Two flavours: LocalRuntime stays on its thread and runs !Send futures, SharedRuntime can be driven from any thread.

Beyond the runtime itself: sockets, child processes, blocking work and files, and executor-agnostic events, locks and channels, each behind its own cargo feature. The events, locks and channels need no runtime at all, so they work under any executor.

The upcoming zbus 6.0 will run on it by default, which is how zbus drops all its smol-rs dependencies.

Crate: crates.io/crates/zruntime
Docs: docs.rs/zruntime
Source: github.com/z-galaxy/zruntime

#rustlang #async #zbus