37 releases (6 breaking)

0.7.3 May 3, 2024
0.7.0 Apr 25, 2024
0.3.4 Jan 8, 2024
0.3.2 Dec 7, 2023
0.3.1 Nov 29, 2023

#140 in #routes

Download history 4/week @ 2024-02-17 18/week @ 2024-02-24 1/week @ 2024-03-02 4/week @ 2024-03-09 13/week @ 2024-03-30 330/week @ 2024-04-06 644/week @ 2024-04-13 182/week @ 2024-04-20 325/week @ 2024-04-27 65/week @ 2024-05-04 1/week @ 2024-05-11

718 downloads per month
Used in tusk-rs

MIT license

18KB
347 lines

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

~320–780KB
~19K SLoC