{"slug": "diesel", "name": "Diesel", "category": "dev-libs", "category_name": "Libraries and frameworks", "description": "", "recommenders": 3, "commenters": 4, "warners": 0, "score": 3.036, "rising": 0.35, "first": "2026-02-19", "latest": "2026-10-21", "why": "Other languages have similar libraries, e.g., Rust has Diesel.", "why_is_quote": true, "has_verdict": false, "sentiment": {"recommend": 3, "neutral": 2, "compare": 0, "warn": 0}, "spark": [0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1], "listed": true, "loved": [], "caveat": "", "short_quote": "Other languages have similar libraries, e.g., Rust has Diesel.", "icon": true, "domain": null, "github_repo": null, "official_url": "https://diesel.rs", "pricing": "", "aliases": ["Diesel"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 802965553, "item_id": 50185347, "url": "https://news.ycombinator.com/item?id=50185347", "by": "jph", "date": "2026-10-21", "stance": "recommend", "quote": "database access using Diesel instead of SeaORM because I like formal types", "excerpt": "I use Loco extensively on many projects and it's great. The creators are very responsive to ideas and questions. Loco feels like it's a perfect halfway point between Axum and Rails. On my wishlist is batteries-included command-line setup support for database access using Diesel instead of SeaORM because I like formal types, and security tokens using PASETO instead of JWT because I like specific algorithms.", "context": "", "use_case": "database access in Rust", "switched_from": "", "story": "Rust off Rails: The opinionated web stack for the AI era"}, {"id": 768832834, "item_id": 48052052, "url": "https://news.ycombinator.com/item?id=48052052", "by": "DowsingSpoon", "date": "2026-05-07", "stance": "recommend", "quote": "Other languages have similar libraries, e.g., Rust has Diesel.", "excerpt": "If you want to avoid string manipulation then you can construct queries with a query builder API like C#'s LINQ. Other languages have similar libraries, e.g., Rust has Diesel. If your objection is to the SQL language itself then you might find Datalog interesting. Datalog is a logic-based language where you query by writing predicates rather than writing SQL statements. Check out Logica <https://logica.dev>. It's a l", "context": "", "use_case": "query building in Rust", "switched_from": "", "story": "SQLite Is a Library of Congress Recommended Storage Format"}, {"id": 753328784, "item_id": 47083049, "url": "https://news.ycombinator.com/item?id=47083049", "by": "jmalicki", "date": "2026-02-19", "stance": "recommend", "quote": "I love Diesel for ORMs", "excerpt": "I love Diesel for ORMs - it's very much in the same spirit as a type safe sqlalchemy, so it depends if you like that. The type safety is a great feature, it always saves me from writing incorrect queries (a huge one is nullability is represented as an option, so nullability mismatches are caught very early). It has an async version that is not as well maintained so it does lag behind, but I've never had an issue with", "context": "", "use_case": "type-safe ORM for Rust web backends", "switched_from": "", "story": "Farewell Rust"}]}], "caveats": [], "who": [{"by": "brainless", "context": "builds product backends in Rust", "url": "https://news.ycombinator.com/item?id=50065780", "date": "2026-10-13"}], "tags": [], "use_cases": ["database access in rust", "rust database orm", "rust orm", "query building in rust", "type-safe orm for rust web backends"], "compared": [{"slug": "axum", "name": "Axum", "co": 2, "switched_from": 0, "switched_to": 0}], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=50183727", "title": "Rust off Rails: The opinionated web stack for the AI era", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=50058528", "title": "A Modern Web App in C", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=48459126", "title": "An experimental coding agent for small (<10B) and tiny (<1B) LLMs", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=48042434", "title": "SQLite Is a Library of Congress Recommended Storage Format", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=47077383", "title": "Farewell Rust", "mentions": 1}], "sentiment_by_month": {"2025-11": {}, "2025-12": {}, "2026-01": {}, "2026-02": {"recommend": 1}, "2026-03": {}, "2026-04": {}, "2026-05": {"recommend": 1}, "2026-06": {"neutral": 1}, "2026-07": {}, "2026-08": {}, "2026-09": {}, "2026-10": {"neutral": 1, "recommend": 1}}, "quotes": [{"id": 802965553, "item_id": 50185347, "url": "https://news.ycombinator.com/item?id=50185347", "by": "jph", "date": "2026-10-21", "stance": "recommend", "quote": "database access using Diesel instead of SeaORM because I like formal types", "excerpt": "I use Loco extensively on many projects and it's great. The creators are very responsive to ideas and questions. Loco feels like it's a perfect halfway point between Axum and Rails. On my wishlist is batteries-included command-line setup support for database access using Diesel instead of SeaORM because I like formal types, and security tokens using PASETO instead of JWT because I like specific algorithms.", "context": "", "use_case": "database access in Rust", "switched_from": "", "story": "Rust off Rails: The opinionated web stack for the AI era"}, {"id": 801052484, "item_id": 50065780, "url": "https://news.ycombinator.com/item?id=50065780", "by": "brainless", "date": "2026-10-13", "stance": "neutral", "quote": "I use frameworks and libraries. Like Tokio, Auxum/Actix Web, Diesel.", "excerpt": "I remember CGI days and I have written tiny web \"features\" with Perl and C many years ago. All my product backends are now in Rust and SQLite but I use frameworks and libraries. Like Tokio, Auxum/Actix Web, Diesel. I am not sure I like the idea that the binary will be called by nginx on each request. I prefer the backend binary to have state. A 256 MiB virtual instance is enough for any software shared between friend", "context": "builds product backends in Rust", "use_case": "Rust database ORM", "switched_from": "", "story": "A Modern Web App in C"}, {"id": 775346033, "item_id": 48459127, "url": "https://news.ycombinator.com/item?id=48459127", "by": "brainless", "date": "2026-06-09", "stance": "neutral", "quote": "I am using Diesel with Rust", "excerpt": "Hey folks, I have been experimenting on something that I am still not sure will work but it just might! I started off building a generic coding agent but focused on small/medium models, like GPT OSS 120B or 20B or models in between. I felt the early days of LLMs, where we would share example input/output may work if the prompt and context was very specific. This led me to experiment with local models. I have tried up", "context": "", "use_case": "Rust ORM", "switched_from": "", "story": "An experimental coding agent for small (<10B) and tiny (<1B) LLMs"}, {"id": 768832834, "item_id": 48052052, "url": "https://news.ycombinator.com/item?id=48052052", "by": "DowsingSpoon", "date": "2026-05-07", "stance": "recommend", "quote": "Other languages have similar libraries, e.g., Rust has Diesel.", "excerpt": "If you want to avoid string manipulation then you can construct queries with a query builder API like C#'s LINQ. Other languages have similar libraries, e.g., Rust has Diesel. If your objection is to the SQL language itself then you might find Datalog interesting. Datalog is a logic-based language where you query by writing predicates rather than writing SQL statements. Check out Logica <https://logica.dev>. It's a l", "context": "", "use_case": "query building in Rust", "switched_from": "", "story": "SQLite Is a Library of Congress Recommended Storage Format"}, {"id": 753328784, "item_id": 47083049, "url": "https://news.ycombinator.com/item?id=47083049", "by": "jmalicki", "date": "2026-02-19", "stance": "recommend", "quote": "I love Diesel for ORMs", "excerpt": "I love Diesel for ORMs - it's very much in the same spirit as a type safe sqlalchemy, so it depends if you like that. The type safety is a great feature, it always saves me from writing incorrect queries (a huge one is nullability is represented as an option, so nullability mismatches are caught very early). It has an async version that is not as well maintained so it does lag behind, but I've never had an issue with", "context": "", "use_case": "type-safe ORM for Rust web backends", "switched_from": "", "story": "Farewell Rust"}]}