Skip to content

Repository files navigation

Async Rust

Concurrency you can reason about

Async Rust is easy to start and hard to finish. The syntax is a day's work; the rest is knowing who owns your state, what happens when a future is dropped halfway through, and what your server does when it is asked for more than it can deliver. This workshop is about the rest.

You will work through a series of test-driven exercises, turning minidb, a small embedded key-value store, into a networked one: concurrent, cancellable, back-pressured, shut down cleanly, and durable across a restart. Everything runs on Tokio.

This workshop is designed for people who are comfortable with Rust and want to stop guessing when it comes to async.

Note

This workshop has been written by Mainmatter.
It's one of the trainings in our portfolio of Rust workshops.
Check out our landing page if you're looking for Rust consulting or training!

Getting started

Open the companion book for this course in your browser. Follow the instructions there to get started.

Requirements

  • Rust (follow instructions here).
    If Rust is already installed on your system, make sure you are running on the latest compiler version (cargo --version).
    If not, update using rustup update (or another appropriate command depending on how you installed Rust on your system).
  • (Optional) An IDE with Rust autocompletion support. We recommend one of the following:

Solutions

You can find the solutions to the exercises in the solutions branch of this repository.

References

Throughout the workshop, the following resources might turn out to be useful:

License

Copyright © 2026- Mainmatter GmbH (https://mainmatter.com), released under the Creative Commons Attribution-NonCommercial 4.0 International license.

About

Building networked services with async Rust and Tokio.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages