37 releases (6 breaking)

new 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 31/week @ 2024-01-08 8/week @ 2024-02-19 15/week @ 2024-02-26 4/week @ 2024-03-11 169/week @ 2024-04-01 184/week @ 2024-04-08 651/week @ 2024-04-15 177/week @ 2024-04-22

1,181 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

~315–770KB
~18K SLoC