Saphir is a fully async-await http server framework for rust
The goal is to give low-level control to your web stack (as hyper does) without the time consuming task of doing everything from scratch.
Just use
the prelude module, and you're ready to go!
Quick Overview
Saphir provide multiple functionality through features. To try it out without fuss, we suggest that use all the features:
= { = "2.0.0", = ["full"] }
Then bootstrapping the server is as easy as:
use *;
async
async
Saphir's Features
Even though we strongly recommend that you use at least the macro
feature,
Saphir will work without any of the following feature, Saphir's features
don't rely on each other to work.
macro
: Enable the#[controller]
macro attribute for code generation, Recommended and active by defaulthttps
: Provide everything to allow Saphir server to listen an accept HTTPS trafficjson
: Add theJson
wrapper type to simplify working with json dataform
: Add theForm
wrapper type to simplify working with urlencoded data
More feature will be added in the future