talira

A small and fast async runtime for Rust

open sourceApache-2.0 OR MITself-hostablefree

smol is a small, fast asynchronous runtime for Rust that re-exports a set of small async crates from the same project: async-executor and async-task for executors, async-io and polling for I/O and timers on epoll, kqueue, event ports and wepoll, async-net, async-fs, async-process, async-channel, async-lock, blocking for a blocking-I/O thread pool, and futures-lite. Because the pieces are separate crates, a program can take only what it needs, and it compiles quickly. Tokio-based libraries work with it through the async-compat adapter. The async-std project was discontinued in 2025 and recommends that its users switch to smol. It was created by Stjepan Glavina and is dual-licensed under Apache-2.0 or MIT.

Problems it solves

  • a lightweight async runtime for Rust that compiles fast and pulls in few dependencies
  • async-std is discontinued and I need a replacement for my Rust code
  • build my own async executor in Rust from small composable pieces
  • run async Rust code in a small binary without a big runtime
  • use a Tokio-based library from a program on a different async runtime

Features

  • re-exports async-channel, async-executor, async-fs, async-io, async-lock, async-net, async-process, async-task, blocking, futures-lite and polling
  • I/O on epoll, kqueue, event ports and wepoll
  • timers through async-io
  • blocking thread pool for blocking I/O
  • works with Tokio-based libraries through the async-compat adapter
  • smol-macros for an async main and a multi-threaded executor without proc macros
  • MSRV policy follows the Rust version in Debian stable (currently 1.85)

Alternatives

The same job

These do what smol does.

  1. glommio A thread-per-core async runtime for Rust and Linux, built on io_uring
  2. Tokio A runtime for writing reliable asynchronous applications with Rust

Compare smol with the top 3