#actix #http #web #framework #async

actix-web

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

101 releases (14 stable)

3.1.0 Oct 1, 2020
3.0.0-beta.3 Aug 17, 2020
3.0.0-beta.1 Jul 14, 2020
3.0.0-alpha.1 Mar 11, 2020
0.2.1 Nov 3, 2017

#1 in HTTP server

Download history 23165/week @ 2020-06-28 24102/week @ 2020-07-05 23661/week @ 2020-07-12 23390/week @ 2020-07-19 21321/week @ 2020-07-26 21055/week @ 2020-08-02 24386/week @ 2020-08-09 24620/week @ 2020-08-16 24828/week @ 2020-08-23 26044/week @ 2020-08-30 26365/week @ 2020-09-06 30851/week @ 2020-09-13 28177/week @ 2020-09-20 33817/week @ 2020-09-27 32456/week @ 2020-10-04 30961/week @ 2020-10-11

107,951 downloads per month
Used in 300 crates (273 directly)

MIT/Apache

1MB
29K SLoC

Actix web

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

crates.io Documentation Version License
Build Status codecov Download Join the chat at https://gitter.im/actix/actix

Features

Documentation

Example

Dependencies:

[dependencies]
actix-web = "3"

Code:

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

#[get("/{id}/{name}/index.html")]
async fn index(web::Path((id, name)): web::Path<(u32, String)>) -> impl Responder {
    format!("Hello {}! id:{}", name, id)
}

#[actix_web::main]
async fn main() -> std::io::Result<()> {
    HttpServer::new(|| App::new().service(index))
        .bind("127.0.0.1:8080")?
        .run()
        .await
}

More examples

You may consider checking out this directory for more examples.

Benchmarks

One of the fastest web frameworks available according to the TechEmpower Framework Benchmark.

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 maintainers of Actix web, promises to intervene to uphold that code of conduct.

Dependencies

~21MB
~503K SLoC