#actix #http #web #framework #async

actix-web

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

80 releases (7 stable)

✓ Uses Rust 2018 edition

1.0.7 Aug 29, 2019
1.0.5 Jul 18, 2019
1.0.0-alpha.2 Mar 30, 2019
0.7.19 Mar 29, 2019
0.2.1 Nov 3, 2017

#1 in HTTP server

Download history 12988/week @ 2019-05-16 12199/week @ 2019-05-23 15758/week @ 2019-05-30 15522/week @ 2019-06-06 15032/week @ 2019-06-13 12980/week @ 2019-06-20 13307/week @ 2019-06-27 11893/week @ 2019-07-04 13836/week @ 2019-07-11 15005/week @ 2019-07-18 14526/week @ 2019-07-25 14748/week @ 2019-08-01 17172/week @ 2019-08-08 15718/week @ 2019-08-15 15612/week @ 2019-08-22

62,393 downloads per month
Used in 136 crates (125 directly)

MIT/Apache

1MB
27K 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

~18MB
~433K SLoC