#actix #http #web #framework #async

actix-web

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

90 releases (10 stable)

✓ Uses Rust 2018 edition

2.0.0 Dec 25, 2019
2.0.0-alpha.1 Nov 22, 2019
1.0.9 Nov 14, 2019
1.0.5 Jul 18, 2019
0.2.1 Nov 3, 2017

#1 in HTTP server

Download history 16566/week @ 2019-11-13 16894/week @ 2019-11-20 14717/week @ 2019-11-27 17966/week @ 2019-12-04 19944/week @ 2019-12-11 13766/week @ 2019-12-18 9917/week @ 2019-12-25 12757/week @ 2020-01-01 18053/week @ 2020-01-08 16591/week @ 2020-01-15 17888/week @ 2020-01-22 19324/week @ 2020-01-29 18748/week @ 2020-02-05 16842/week @ 2020-02-12 15749/week @ 2020-02-19

66,121 downloads per month
Used in 224 crates (201 directly)

MIT/Apache and MPL-2.0 licenses

1.5MB
30K SLoC

Actix web

Actix web is a small, pragmatic, and extremely fast rust web framework

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

Website | Chat | Examples


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

Example

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

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

#[actix_rt::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

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

~19MB
~451K SLoC