State of Rust for web backends

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
  • sea-orm

    🐚 An async & dynamic ORM for Rust

  • There's SeaORM. (Which is built on top of SQLx if you prefer something more like SQLAlchemy's query builder layer without its ORM layer.)

  • mux

    Discontinued A powerful HTTP router and URL matcher for building Go web servers with 🦍

  • popular libraries looking for new maintainers and getting eventually archived ( https://github.com/gorilla/mux )

  • 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
  • aws-lambda-rust-runtime

    A Rust runtime for AWS Lambda

  • Hi, maybe check out https://github.com/awslabs/aws-lambda-rust-runtime there's some examples in there.. But essentially you can build a Lambda function and deploy to your AWS account with this toolset.

  • Rocket

    A web framework for Rust.

  • I am the solo developer of two web applications which use backends (and frontends, I guess) written in Rust. I cannot recommend Rust highly enough for solo developers, even beginners in Rust. The first one uses Rocket, and it was my first real project where I really learned how to use Rust and get the most out of it in this domain. I'm still pretty happy with Rocket and enjoy developing on top of it, however I would not use it for a new project today.

  • actix-web

    Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

  • The second one uses Actix and I'm still very happily developing on top of it today. Actix these days is my go-to for any web backend that needs to be written in Rust.

  • tokio

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

  • I started using axum earlier this year, it's a relatively young project, but builds on the shoulders of more established giants like tokio, hyper and tower, both enabling use of a wider ecosystem of utilities for your services (tower and tower-http provide already pretty common services/layers you might need).

  • hyper

    An HTTP library for Rust (by hyperium)

  • I started using axum earlier this year, it's a relatively young project, but builds on the shoulders of more established giants like tokio, hyper and tower, both enabling use of a wider ecosystem of utilities for your services (tower and tower-http provide already pretty common services/layers you might need).

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • diesel

    A safe, extensible ORM and Query Builder for Rust

  • I've been building a relatively small project with axum and diesel, and I'm pretty happy with it.

  • routerify

    A lightweight, idiomatic, composable and modular router implementation with middleware support for the Rust HTTP library hyper.rs

  • You can checkout an example AWS Lambda entrypoint for an HTTP library Routerify (very similar to Axum) here: https://github.com/routerify/routerify/blob/master/examples/aws_lambda.rs

  • filter

    Simple apply/filter/reduce package.

  • Also since generators are mentioned I recently came across this rob pike moment, he implemented a reduce function that takes and returns all interface{} types and uses reflection to check if the call is valid at runtime - that's the most typical Go that can ever be written in 40 lines - all that to make the point that it's useless. Such a great spirit. https://github.com/robpike/filter

  • lettre

    a mailer library for Rust

  • lettre is the mails crate I'm hoping to use soon.

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