rapid-web 0.4.9

A simple Rust server for the Rapid framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use rapid_web::{
	actix::HttpServer,
	rapid_web_codegen::{main, rapid_configure, routes},
	server::RapidServer,
};

rapid_configure!("src/routes");

#[main]
async fn main() -> std::io::Result<()> {
	let app = RapidServer::create(None, None);

	app.listen(HttpServer::new(move || RapidServer::fs_router(None, None, routes!("src/routes"))))
		.await
}