Desktop apps · Library

Tokio

The standard engine for asynchronous Rust: it lets one program handle thousands of network requests, timers and file operations at once without a thread for each.

Rust building blocks · Open source · updated

How it works

Rust's async functions do nothing on their own; they need a runtime to schedule them. Tokio provides one, with a pool of worker threads that run tasks whenever they can make progress, plus async versions of TCP and UDP sockets, timers, file access, channels and locks. A #[tokio::main] attribute on main starts it.

Much of the Rust networking world is built on it: the reqwest HTTP client, the hyper and axum web servers, the sqlx database library and tonic for gRPC. Tauri uses it as its default async runtime. The main rule is never to block a Tokio thread with long CPU work or blocking calls; spawn_blocking moves such work to a separate thread pool.

Tokio pricing

Open source

Free (MIT).

Approximate, checked September 2026.What the other tools cost

More in Desktop apps

Rust building blocks

All 12 Desktop apps terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.