How Diesel autogenerates a Rust API from a database schema

In this guide we’re going to look at what exactly infer_schema!, infer_table_from_schema!, and table! do. For table!, we will show a simplified version of the actual code that gets generated, and explain how each piece is relevant to you. If you’ve ever b… Read more

Similar

A Practical Intro to Macros in Rust

One feature of Rust that I'm rather enamoured with is its macro system. Known as "macro by example" (MBE) or sometimes referred to as macro_rules, it provides you with an impressive amount of power whilst not allowing for the sort of evil tricks you can ... (more…)

Read more »