filipton / qaf

Quick and fast web api's

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QAF

Crates.io version docs.rs docs

Create web api's at ease!

IF YOU WANT TO SEE TEMPLATES CLICK HERE.

Why and how?

Main reason why creating web api's in rust is slow (not really) is the thing with routing.
In every framework you must to set route handlers by hand, so i've made simple build.rs scripts to speed up this process.

Routes are stored in src/pages dir, they are automatically scanned and added to router (Actix, Axum, Cloudflare and event Vercel with custom router implementation).

Compatibility

I'm not creating own Responses so your function declarations are the same. Only Vercel have different implementation, because it doesn't have bullt in router.

Installation

cargo install qaf

Usage

asciicast

Support

# Actix Axum Cloudflare Workers Vercel Edge
Routing Dir based Dir based Dir based Dir based
Database Mysql and Postgres (SQLX) Mysql and Postgres (SQLX) Planetscale Planetscale
Websockets Tungstenite Tungstenite Yes No
Docker Yes Yes No No
Dev command Yes Yes Yes Yes

About

Quick and fast web api's


Languages

Language:Rust 100.0%