41 releases (7 breaking)

0.8.3 Jun 20, 2024
0.7.3 May 3, 2024
0.3.4 Jan 8, 2024
0.3.2 Dec 7, 2023
0.3.1 Nov 29, 2023

#822 in Database interfaces

Download history 5/week @ 2024-03-28 301/week @ 2024-04-04 279/week @ 2024-04-11 178/week @ 2024-04-18 175/week @ 2024-04-25 355/week @ 2024-05-02 1/week @ 2024-05-09 2/week @ 2024-05-30 3/week @ 2024-06-06 511/week @ 2024-06-20

516 downloads per month

MIT license

71KB
1.5K SLoC

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

~10–20MB
~307K SLoC