#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-rc May 18, 2019
1.0.0-beta.2 Apr 24, 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 7217/week @ 2019-02-02 8578/week @ 2019-02-09 8097/week @ 2019-02-16 9584/week @ 2019-02-23 9850/week @ 2019-03-02 11578/week @ 2019-03-09 10832/week @ 2019-03-16 9897/week @ 2019-03-23 12193/week @ 2019-03-30 12430/week @ 2019-04-06 11855/week @ 2019-04-13 9589/week @ 2019-04-20 10935/week @ 2019-04-27 11100/week @ 2019-05-04 14223/week @ 2019-05-11

47,250 downloads per month
Used in 102 crates (91 directly)

MIT/Apache

455KB
10K 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
~332K SLoC