#http #web #framework #async #futures

actix-web

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

50 releases (6 breaking)

0.7.6 Sep 8, 2018
0.7.4 Aug 23, 2018
0.7.2 Jul 26, 2018
0.4.10 Mar 20, 2018
0.2.1 Nov 3, 2017

#1 in HTTP server

Download history 2335/week @ 2018-09-11 3074/week @ 2018-09-18 2691/week @ 2018-09-25 2839/week @ 2018-10-02 2548/week @ 2018-10-09 4582/week @ 2018-10-16 3488/week @ 2018-10-23 4099/week @ 2018-10-30 3986/week @ 2018-11-06 3606/week @ 2018-11-13 5703/week @ 2018-11-20 4586/week @ 2018-11-27 4342/week @ 2018-12-04

10,749 downloads per month
Used in 53 crates (48 directly)

MIT/Apache

1.5MB
31K SLoC

Actix web Build Status 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

extern crate actix_web;
use actix_web::{http, server, App, Path, Responder};

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

fn main() {
    server::new(
        || App::new()
            .route("/{id}/{name}/index.html", http::Method::GET, index))
        .bind("127.0.0.1:8080").unwrap()
        .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

~20MB
~433K SLoC