Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
106 lines (83 sloc) 4.07 KB

Actix web

Actix web is a small, pragmatic, and extremely fast rust web framework

Build Status codecov Join the chat at Documentation Download Version License

Website | Chat | Examples

Actix web is a simple, pragmatic and extremely fast web framework for Rust.



actix-web = "2"
actix-rt = "1"


use actix_web::{get, web, App, HttpServer, Responder};

async fn index(info: web::Path<(u32, String)>) -> impl Responder {
    format!("Hello {}! id:{}", info.1, info.0)

async fn main() -> std::io::Result<()> {
    HttpServer::new(|| App::new().service(index))

More examples

You may consider checking out this directory for more examples.



This project is licensed under either of

at your option.

Code of Conduct

Contribution to the actix-web crate is organized under the terms of the Contributor Covenant, the maintainer of actix-web, @fafhrd91, promises to intervene to uphold that code of conduct.

You can’t perform that action at this time.