Diesel

A safe, extensible ORM and query builder for Rust that checks queries at compile time.

Diesel generates Rust types from your schema so invalid queries fail to compile. It supports PostgreSQL, MySQL and SQLite with zero-cost abstractions. Its synchronous core is complemented by community async adapters.

Type
Library
Category
Data
Maintainer
Diesel core team
First released
2015
License
Open source (MIT OR Apache-2.0)
Pricing
Open source
Level
Advanced
Technologies
rust, sql
GitHub stars
14,299
Weekly downloads
1,318,516 (crates)
Latest release
[object Object]
Last verified
26 Nov 2026

What Diesel is used for

  • Type-safe database access in Rust

Strengths

  • Compile-time query checking
  • High performance

Limitations

  • Steep compile errors
  • Async support via separate crates

Diesel alternatives

How it relates to other tools

Built with the same technologies

Official links

Sources

Explore