From 412e54ce1071e22da11a8a53e89f807814e7e0e4 Mon Sep 17 00:00:00 2001 From: Adam Kewley Date: Wed, 15 Jan 2020 19:09:58 +0000 Subject: [PATCH 1/2] Fixed documentation typo for actix-files (#1278) --- actix-files/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-files/src/lib.rs b/actix-files/src/lib.rs index 4d111e8a7..d910b7d5f 100644 --- a/actix-files/src/lib.rs +++ b/actix-files/src/lib.rs @@ -275,7 +275,7 @@ impl Files { /// /// `File` uses `ThreadPool` for blocking filesystem operations. /// By default pool with 5x threads of available cpus is used. - /// Pool size can be changed by setting ACTIX_CPU_POOL environment variable. + /// Pool size can be changed by setting ACTIX_THREADPOOL environment variable. pub fn new>(path: &str, dir: T) -> Files { let orig_dir = dir.into(); let dir = match orig_dir.canonicalize() { From 3a5b62b5502d8c2ba5d824599171bb381f6b1b49 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 16 Jan 2020 23:17:17 +0900 Subject: [PATCH 2/2] Add dependencies instruction (#1281) --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3c231d998..0b55c5bae 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,16 @@ Actix web is a simple, pragmatic and extremely fast web framework for Rust. ## Example +Dependencies: + +```toml +[dependencies] +actix-web = "2" +actix-rt = "1" +``` + +Code: + ```rust use actix_web::{get, web, App, HttpServer, Responder}; @@ -65,7 +75,7 @@ async fn main() -> std::io::Result<()> { * [Multipart streams](https://github.com/actix/examples/tree/master/multipart/) * [Simple websocket](https://github.com/actix/examples/tree/master/websocket/) * [Tera](https://github.com/actix/examples/tree/master/template_tera/) / - [Askama](https://github.com/actix/examples/tree/master/template_askama/) templates +* [Askama](https://github.com/actix/examples/tree/master/template_askama/) templates * [Diesel integration](https://github.com/actix/examples/tree/master/diesel/) * [r2d2](https://github.com/actix/examples/tree/master/r2d2/) * [OpenSSL](https://github.com/actix/examples/tree/master/openssl/)