#actix #http #async #web #framework #actix-web #frameworks

actix-web

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

106 releases (18 stable)

4.0.0-beta.1 Jan 7, 2021
3.3.2 Dec 1, 2020
3.3.1 Nov 29, 2020
3.0.0-beta.1 Jul 14, 2020
0.2.1 Nov 3, 2017

#1 in HTTP server

Download history 33072/week @ 2020-10-02 32125/week @ 2020-10-09 30751/week @ 2020-10-16 31825/week @ 2020-10-23 35632/week @ 2020-10-30 33902/week @ 2020-11-06 33278/week @ 2020-11-13 34383/week @ 2020-11-20 35640/week @ 2020-11-27 35779/week @ 2020-12-04 34383/week @ 2020-12-11 25943/week @ 2020-12-18 18548/week @ 2020-12-25 28212/week @ 2021-01-01 40686/week @ 2021-01-08 35702/week @ 2021-01-15

134,695 downloads per month
Used in 356 crates (327 directly)

MIT/Apache

1.5MB
30K SLoC

Actix web

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

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

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 repo is organized under the terms of the Contributor Covenant. The Actix team promises to intervene to uphold that code of conduct.

Dependencies

~21MB
~501K SLoC