#110110th of 275 in Backends, databases and hosting

diesel

Type-checked ORM and query builder for Rust

Releases and problems feed (RSS)

Stars
14.3k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Rust
Stars, last 29 weeks+344
28 Apr 2026: 13,929 stars5 May 2026: 13,939 stars12 May 2026: 13,956 stars19 May 2026: 13,977 stars26 May 2026: 13,985 stars2 Jun 2026: 13,999 stars9 Jun 2026: 14,012 stars16 Jun 2026: 14,019 stars23 Jun 2026: 14,024 stars30 Jun 2026: 14,036 stars7 Jul 2026: 14,044 stars14 Jul 2026: 14,056 stars21 Jul 2026: 14,070 stars28 Jul 2026: 14,076 stars4 Aug 2026: 14,088 stars11 Aug 2026: 14,095 stars18 Aug 2026: 14,104 stars25 Aug 2026: 14,115 stars1 Sept 2026: 14,125 stars8 Sept 2026: 14,133 stars15 Sept 2026: 14,141 stars22 Sept 2026: 14,149 stars29 Sept 2026: 14,159 stars6 Oct 2026: 14,170 stars13 Oct 2026: 14,184 stars20 Oct 2026: 14,197 stars27 Oct 2026: 14,212 stars3 Nov 2026: 14,216 stars10 Nov 2026: 14,232 stars17 Nov 2026: 14,273 stars

13,929 on 28 Apr 202614,273 on 17 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Diesel is a Rust crate that builds SQL queries through the type system, so malformed queries and column type mismatches fail at compile time. It supports PostgreSQL, MySQL, SQLite and MariaDB, selected by a Cargo feature. Derive macros map structs to rows and insert or update payloads, and a raw SQL API covers queries the builder cannot express. It is not an AI project.

Who it is for: Rust developers who want compile-time-checked database access

Strengths

  • Query errors are caught at compile time through Rust's type system
  • Derive macros (Queryable, Insertable, Selectable) remove manual row mapping
  • Supports PostgreSQL, MySQL, SQLite and MariaDB behind Cargo features
  • Raw SQL escape hatch via sql_query with bound parameters

Weaknesses

  • Library only: no auth, storage or hosting, so it is not a full backend
  • No AI or LLM features; it fits this list only loosely
  • Rust only; the README shows no async API
  • Heavy generic types can make compile errors hard to read

What it needs

  • no GPU
  • Compose
  • Needs PostgreSQL, MySQL, MariaDB or SQLite

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Open now, reported in the last 90 days

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Backends, databases and hosting

See all 275
Also in Backends, databases and hosting
RankProjectScore
1bunJavaScript and TypeScript runtime with bundler, test runner and package manager96.8k starscustom license94 out of 100
2coolifySelf-hosted Heroku and Vercel alternative that deploys apps and databases over SSH66.2k stars+3,121 (+4.9%) in 30 daysApache-2.093 out of 100
3traefikHTTP reverse proxy and load balancer that auto-discovers routes from orchestrators65.6k starsMIT93 out of 100
#4appwriteBackend with auth, databases, storage, functions and an MCP server for agents Live demo ↗ (opens in a new tab)58.4k stars+641 (+1.1%) in 30 daysBSD-3-Clause93 out of 100
#5medusaNode.js commerce platform with modular products, carts, orders and payments37.3k starscustom license93 out of 100