rweb
Yet another web server framework for rust.
Installation:
[]
= "0.6"
= "1"
Installation (with automatic openapi generation):
[]
= { = "0.6", = ["openapi"] }
= "1"
= "1"
Features
- Safe & Correct
Since rweb
is based on warp, which features safety and correctness, rweb
has same property.
- Easy to read code
use *;
use ;
async
- Websocket
If you want to use websocket, just declare a parameter typed Ws
. It's all.
use *;
- Automatic openapi spec generation
rweb supports automatically generating openapi specification file based on your code.
See: documentation for usage.
- API UX interaction for openapi
// Build openapi for your API
let = spec.build;
println!;
serve
.run
.await;
Comparison
Name | rweb | actix-web | gotham | iron | nickel | rocket | rouille | Thruster | Tide | tower-web | warp |
---|---|---|---|---|---|---|---|---|---|---|---|
License | |||||||||||
Version | |||||||||||
Recent downloads | |||||||||||
Github stars | |||||||||||
Contributors | |||||||||||
Activity | |||||||||||
Base framework | hyper / warp | tokio | hyper | hyper | hyper | hyper | tiny-http | tokio | hyper | hyper | hyper |
https | Y | Y | Y | ? | ? | ? | ? | ? | ? | ? | Y |
http 2 | Y | Y | ? | ? | ? | ? | ? | ? | ? | ? | Y |
async | Y | Y | Y | Y | Y | Y | Y (via different method) | ||||
stable rust | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | |
openapi support | Y |