53 releases

0.99.11 Jun 13, 2025
0.9.0 Jun 10, 2025
0.8.3 Jun 20, 2024
0.3.4 Jan 8, 2024
0.3.1 Nov 29, 2023

#936 in #postgresql

Download history 1/week @ 2025-07-23 2/week @ 2025-08-20 1/week @ 2025-09-03 1/week @ 2025-09-10

2,445 downloads per month
Used in tusk-rs

MIT license

14KB
296 lines

Procedural macros used by the tusk-rs library.


Tusk

Beautiful & safe Postgres-backed APIs in Rust. still a WIP, no documentation, use at your own risk

Goals

Tusk is meant to be a boilerplate-free way to write Web APIs. It currently achieves this in a couple ways:

  • Database queries can be generated. Provide details about your queries and Tusk will generate functions with strong typings.
  • Routes are made using macros and a Postgres database connection is automatically negotiated for every endpoint.
  • Simple middleware handling, one function can pass whatever data your application needs to every route.

Dependencies

~155–560KB
~13K SLoC