#actix #http #web #framework #async

actix-web

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

63 releases

✓ Uses Rust 2018 edition

new 1.0.0-beta.1 Apr 21, 2019
1.0.0-alpha.2 Mar 30, 2019
0.7.19 Mar 29, 2019
0.7.17 Dec 25, 2018
0.2.1 Nov 3, 2017

#1 in HTTP server

Download history 5607/week @ 2019-01-06 5758/week @ 2019-01-13 5998/week @ 2019-01-20 6158/week @ 2019-01-27 7285/week @ 2019-02-03 8386/week @ 2019-02-10 8113/week @ 2019-02-17 9617/week @ 2019-02-24 9974/week @ 2019-03-03 11602/week @ 2019-03-10 10752/week @ 2019-03-17 10018/week @ 2019-03-24 12029/week @ 2019-03-31 12601/week @ 2019-04-07 11833/week @ 2019-04-14

41,034 downloads per month
Used in 89 crates (83 directly)

MIT/Apache

415KB
9K SLoC

Actix web Build Status codecov crates.io Join the chat at https://gitter.im/actix/actix

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

Documentation & community resources

Example

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

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

fn main() -> std::io::Result<()> {
    HttpServer::new(
        || App::new().service(
              web::resource("/{id}/{name}/index.html").to(index)))
        .bind("127.0.0.1:8080")?
        .run()
}

More examples

You may consider checking out this directory for more examples.

Benchmarks

License

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.

Dependencies

~17MB
~333K SLoC