Stabilizing async fn in traits in 2023 | Inside Rust Blog

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • tokio

    A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

  • It's outdated and see this issue that removing it:

  • async-std

    Async version of the Rust standard library

  • But maybe check out the discussion here or something (the blog post was linked on the end of it)

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • rust

    Empowering everyone to build reliable and efficient software.

  • The issue currently, and the one that the article above points out, is that right now you can't use async in a single-threaded context without paying for synchronization overhead anyway. All of the provided constructs must be Send and the supporting data structures all use Arc and Mutex under the hood. There's been progress in this area but it still isn't a supported use case. In order to do it you basically have to use mio or write things from scratch.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts