34 releases (6 breaking)

new 0.7.0 Apr 25, 2024
0.5.0 Apr 10, 2024
0.3.4 Jan 8, 2024
0.3.2 Dec 7, 2023
0.3.1 Nov 29, 2023

#752 in Database interfaces

Download history 19/week @ 2024-01-01 23/week @ 2024-01-08 6/week @ 2024-02-26 161/week @ 2024-04-01 180/week @ 2024-04-08 419/week @ 2024-04-15

760 downloads per month

MIT license

86KB
2K 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

~11–23MB
~387K SLoC