Command Palette

Search for a command to run...

position in category
#9

Safe, extensible ORM and query builder for Rust with composable abstractions over SQL. Enables type-safe database interactions checked at compile time rather than runtime, so common mistakes like wrong column types or invalid queries are caught before execution.

Backed by NLNet, NGI Zero Core, Prototype Fund, and the GitHub Secure Open Source Fund, Diesel has undergone security reviews, including a 2025 penetration test by RadicallyOpenSecurity. Unlike Active Record–style ORMs, Diesel is designed to be abstracted over: you write reusable code in terms of your domain, not raw SQL. Zero-cost abstractions allow queries to run with minimal overhead.

Key features:

  • PostgreSQL, MySQL, and SQLite support
  • Compile-time query validation and type inference
  • Built-in migrations and schema management
  • Raw SQL support when needed
  • Extensible design with community extensions

Common choices include backend services, REST and GraphQL APIs, CLI tools, and web applications built in Rust. Integrates with async runtimes like tokio for non-blocking database access.

GitHub Repositories
46
-6.1%
Trending down this week
Removed in 3 repos