What are modern & stable tools & frameworks for REST API

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

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • GitHub repo diesel

    A safe, extensible ORM and Query Builder for Rust

    Diesel is quite nice for SQL imo, but some don't like it. I'd recommend at least giving it a try.

  • GitHub repo sqlx

    🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL. (by launchbadge)

    Can't mention Diesel without someone throwing out SQLx, the other major competitor for using SQL from Rust.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • GitHub repo actix_sqlx_mysql_user_crud

    A user crud written in Rust, designed to connect to a MySQL database with full integration test coverage.

    If you want an idea of what you'd be getting into, take a look at this example CRUD I wrote w/ actix-web, sqlx, and serde: actix sqlx usercrud

  • GitHub repo zero-to-production

    Code to follow along the "Zero To Production" book on API development in Rust.

    If you'd like a book to give you an introduction to the basics of everything (maybe not OpenAPI, but I'm unsure) you're asking for, I highly recommend zero2pord. It's unfinished, but I think it's got plenty to get you up to speed in its current form. You can also find all of the finished chapters on the authors blog.

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