#actix #http #web #framework #async

actix-web

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

82 releases (9 stable)

✓ Uses Rust 2018 edition

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

#1 in HTTP server

Download history 14748/week @ 2019-08-01 17172/week @ 2019-08-08 15718/week @ 2019-08-15 15612/week @ 2019-08-22 14479/week @ 2019-08-29 14112/week @ 2019-09-05 14220/week @ 2019-09-12 14493/week @ 2019-09-19 15865/week @ 2019-09-26 13921/week @ 2019-10-03 14513/week @ 2019-10-10 15695/week @ 2019-10-17 14814/week @ 2019-10-24 14569/week @ 2019-10-31 15558/week @ 2019-11-07

62,869 downloads per month
Used in 161 crates (146 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

~17MB
~431K SLoC