diesel-rs/diesel
A safe, extensible ORM and Query Builder for Rust observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 84
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 33.5
- age_days: 4022
- days_rel: 26
- days_push: 8
- n_releases_24m: 21
Adoption not part of the score
14162 stars · 1232 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Diesel is a safe, extensible ORM and query builder for Rust supporting PostgreSQL, MySQL, MariaDB, and SQLite. It leverages Rust's type system to catch incorrect database interactions at compile time while providing zero-cost abstractions for high-performance queries.
Use cases
- query a postgres database from rust without writing raw sql
- build type-safe sql queries in rust
- map database rows to rust structs
- do crud operations with sqlite in a rust app
- avoid runtime sql errors by validating queries at compile time
- write complex sql queries with joins and filters in rust
- manage database migrations for a rust web service
When to choose
- you want compile-time guarantees that your queries match your schema
- you need high-performance database access with zero-cost abstractions in Rust
- you want an ORM that supports PostgreSQL, MySQL, MariaDB, and SQLite
- you prefer writing queries in Rust rather than raw SQL strings
When to avoid
- you need async database access out of the box (consider sea-orm or sqlx)
- you want a lightweight raw sql driver without an orm layer
- your project requires a database backend other than postgres, mysql, mariadb, or sqlite
- you need dynamic runtime-defined queries that cannot be checked at compile time
Facets
library · maturity stable
orm database database-driver serialization databases backend web-development developer-tools rust cross-platform query-builder sql postgresql mysql sqlite mariadb compile-time-checked zero-cost-abstractions
6 sources
- readme: https://github.com/diesel-rs/diesel · fetched 2026-08-28 · 11face341541
- homepage: https://diesel.rs · fetched 2026-08-29 · 6c3541b9ed65
- site_page: https://diesel.rs/api_docs · fetched 2026-08-29 · 10cf2f277234
- site_page: https://diesel.rs/guides/getting-started · fetched 2026-08-29 · b168729f357d
- registry_crates: https://crates.io/api/v1/crates/diesel · fetched 2026-08-29 · 3f2e0b1f371c
- site_page: https://diesel.rs/changelog · fetched 2026-08-29 · a68a37c1597f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| diesel-rs/diesel | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="diesel-rs/diesel")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem