| Crates.io | toki-no |
| lib.rs | toki-no |
| version | 0.3.0 |
| created_at | 2025-09-16 12:07:28.732303+00 |
| updated_at | 2025-09-17 11:36:26.969669+00 |
| description | A minimal and fast async runtime, written in pure Rust. |
| homepage | |
| repository | https://github.com/johvnik/toki-no |
| max_upload_size | |
| id | 1841550 |
| size | 9,426 |
時の... of time...
toki-no is a minimal and fast async runtime for Rust.
toki-no is an exploration into the fundamentals of asynchronous execution, built from the ground up in pure Rust. It provides a lean executor and I/O reactor, focusing on simplicity and performance.
The core goal is to provide a runtime that is easy to understand, has a minimal API, and maintains low overhead.
Add toki-no to your Cargo.toml:
use std::time::Duration;
#[toki_no::main]
async fn main() {
println!("Hello from an async world!");
// Spawn a concurrent task
let handle = toki_no::spawn(async {
println!("Task is running...");
toki_no::sleep(Duration::from_secs(1)).await;
"Task finished!"
});
println!("Main function continues...");
let result = handle.await;
println!("Result from spawned task: {}", result);
}