22 ms·
How about Actix? From the README at https://github.com/actix/actix-web#example https://github.com/actix/actix-web#example: extern crate actix_web; use
by willglynn 9y ago
How about Actix? From the README at https://github.com/actix/actix-web#example https://github.com/actix/actix-web#example:
extern crate actix_web;
use actix_web::*;
fn index(req: HttpRequest) -> String {
format!("Hello {}!", &req.match_info()["name"])
}
fn main() {
HttpServer::new(
|| Application::new()
.resource("/{name}", |r| r.f(index)))
.bind("127.0.0.1:8080").unwrap()
.run();
}
- leshow 9y agoAFAIK actix was pretty high in the techempower rankings this year, top 10 or 20 in most.