diesel-rs/diesel

A safe, extensible ORM and Query Builder for Rust

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 8 minutes ago
Added to GitGenius on September 4th, 2026
Created on August 29th, 2015
Open Issues & Pull Requests: 157 (+0)
GitHub issues: Enabled
Number of forks: 1,234
Total Stargazers: 14,172 (+0)
Total Subscribers: 108 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 8.3 hours
Mean response time: 135.5 days
90th percentile: 39.3 days
Tracked items: 165

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 60% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Work labelled "bug" is answered fastest, typically in about 4 hours, while "hole in api" waits about 4 days. Only 5% of issues opened in the past year have been closed. Three people close 91% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 30
New in 7 days: 2
Closed in 7 days: 0
Avg open age: 1,642 days
Stale 30+ days: 24
Stale 90+ days: 18

Recent activity

Opened in 7 days: 2
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (117)
  • help wanted (46)
  • enhancement (19)
  • good first issue (16)
  • documentation (15)
  • mentoring available (15)
  • mysql (12)
  • postgres (12)

Detailed Description

Diesel is a safe, extensible ORM and query builder for Rust that eliminates boilerplate for database interaction while maintaining performance through compile-time type checking.

The tool solves the problem of writing database code safely and concisely by leveraging Rust's type system to catch errors at compile time rather than runtime. It provides a query builder that feels idiomatic to Rust, allowing developers to construct both simple and complex queries with zero runtime overhead. Codegen capabilities automatically generate boilerplate for mapping between Rust structs and database rows, reducing the amount of manual mapping code required. The tool supports raw SQL when needed for queries that are easier or impossible to express through the query builder.

Diesel suits projects where type safety and compile-time guarantees matter, particularly those already committed to Rust. It works well for applications that need to interact with PostgreSQL, MySQL, SQLite, or MariaDB. Developers should choose it if they want to eliminate entire categories of runtime database errors and prefer expressing queries in Rust rather than as strings. The tool is particularly valuable for teams that want to reduce boilerplate without sacrificing performance or type safety.

The project maintains an active discussion forum for users seeking help and proposing features. Development follows a structured contribution process with documented guidelines for local setup and coding standards. The project has established notable institutional support through multiple sponsors backing ongoing work.