diff --git a/async_db/Cargo.toml b/async_db/Cargo.toml index 631031e..6b3d260 100644 --- a/async_db/Cargo.toml +++ b/async_db/Cargo.toml @@ -7,7 +7,7 @@ workspace = ".." [dependencies] actix-rt = "1.0.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" dotenv = "0.10" env_logger = "0.6" diff --git a/async_db/src/main.rs b/async_db/src/main.rs index ec40433..93443ad 100644 --- a/async_db/src/main.rs +++ b/async_db/src/main.rs @@ -70,6 +70,6 @@ async fn main() -> io::Result<()> { ) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/async_ex1/Cargo.toml b/async_ex1/Cargo.toml index effa2a8..c532978 100644 --- a/async_ex1/Cargo.toml +++ b/async_ex1/Cargo.toml @@ -7,7 +7,7 @@ workspace = ".." [dependencies] actix-rt = "1.0.0" -actix-web = { version="2.0.0-rc", features=["openssl"] } +actix-web = { version="2.0.0", features=["openssl"] } futures = "0.3.1" serde = "1.0.43" diff --git a/async_ex1/src/main.rs b/async_ex1/src/main.rs index 3f049ec..dc9e25d 100644 --- a/async_ex1/src/main.rs +++ b/async_ex1/src/main.rs @@ -95,6 +95,6 @@ async fn main() -> io::Result<()> { .service(web::resource("/something").route(web::post().to(create_something))) }) .bind(endpoint)? - .start() + .run() .await } diff --git a/async_ex2/Cargo.toml b/async_ex2/Cargo.toml index 580a4b1..f5cb641 100644 --- a/async_ex2/Cargo.toml +++ b/async_ex2/Cargo.toml @@ -3,11 +3,10 @@ name = "async_ex2" version = "0.1.0" authors = ["dowwie "] edition = "2018" -workspace = ".." [dependencies] actix-rt = "1.0.0" -actix-web = { version="2.0.0-rc", features=["openssl"] } +actix-web = { version="2.0.0", features=["openssl"] } actix-multipart = "0.2.0" actix-service = "1.0.0" bytes = "0.5.3" diff --git a/async_ex2/src/bin/main.rs b/async_ex2/src/bin/main.rs index be8ef02..03c7dfc 100644 --- a/async_ex2/src/bin/main.rs +++ b/async_ex2/src/bin/main.rs @@ -13,6 +13,6 @@ async fn main() -> std::io::Result<()> { .wrap(middleware::Logger::default()) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/basics/Cargo.toml b/basics/Cargo.toml index 9b72dd7..e39442c 100644 --- a/basics/Cargo.toml +++ b/basics/Cargo.toml @@ -7,8 +7,8 @@ edition = "2018" [dependencies] actix-rt = "1.0.0" -actix-web = "2.0.0-rc" -actix-files = "0.2.0" +actix-web = "2.0.0" +actix-files = "0.2.1" actix-session = "0.3.0" actix-utils = "1.0.3" diff --git a/basics/src/main.rs b/basics/src/main.rs index 9d55d06..d45154c 100644 --- a/basics/src/main.rs +++ b/basics/src/main.rs @@ -123,6 +123,6 @@ async fn main() -> io::Result<()> { ) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/cookie-auth/Cargo.toml b/cookie-auth/Cargo.toml index 574c69e..899c5c1 100644 --- a/cookie-auth/Cargo.toml +++ b/cookie-auth/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" workspace = ".." [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-identity = "0.2.0" actix-rt = "1.0.0" env_logger = "0.6" diff --git a/cookie-auth/src/main.rs b/cookie-auth/src/main.rs index cb14cce..6efd51e 100644 --- a/cookie-auth/src/main.rs +++ b/cookie-auth/src/main.rs @@ -38,6 +38,6 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/").route(web::get().to(index))) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/cookie-session/Cargo.toml b/cookie-session/Cargo.toml index 1058817..b5f81d3 100644 --- a/cookie-session/Cargo.toml +++ b/cookie-session/Cargo.toml @@ -6,7 +6,7 @@ workspace = ".." edition = "2018" [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-session = "0.3.0" actix-rt = "1.0.0" diff --git a/cookie-session/src/main.rs b/cookie-session/src/main.rs index e4c81dc..52b2067 100644 --- a/cookie-session/src/main.rs +++ b/cookie-session/src/main.rs @@ -40,6 +40,6 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/").to(index)) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/diesel/Cargo.toml b/diesel/Cargo.toml index 6ef8868..e3f28b3 100644 --- a/diesel/Cargo.toml +++ b/diesel/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] actix-rt = "1.0.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" bytes = "0.4" env_logger = "0.6" diff --git a/diesel/src/main.rs b/diesel/src/main.rs index c8844a2..053d7e3 100644 --- a/diesel/src/main.rs +++ b/diesel/src/main.rs @@ -136,6 +136,6 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/add/{name}").route(web::get().to(add))) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/error_handling/Cargo.toml b/error_handling/Cargo.toml index 2561516..abfb233 100644 --- a/error_handling/Cargo.toml +++ b/error_handling/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" workspace = ".." [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" derive_more = "0.99.2" futures = "0.3.1" diff --git a/error_handling/src/main.rs b/error_handling/src/main.rs index 5821980..dce9bb3 100644 --- a/error_handling/src/main.rs +++ b/error_handling/src/main.rs @@ -97,6 +97,6 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/something").route(web::get().to(do_something))) }) .bind("127.0.0.1:8088")? - .start() + .run() .await } diff --git a/form/Cargo.toml b/form/Cargo.toml index e1dd1fe..0c1a0ce 100644 --- a/form/Cargo.toml +++ b/form/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" workspace = ".." [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" serde = "1.0" serde_derive = "1.0" diff --git a/form/src/main.rs b/form/src/main.rs index 1ce3d10..c429332 100644 --- a/form/src/main.rs +++ b/form/src/main.rs @@ -17,7 +17,7 @@ async fn main() -> std::io::Result<()> { .configure(app_config) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } @@ -142,9 +142,7 @@ mod tests { foo: "bar".to_string(), }) .to_http_request(); - let data = state - .app_data::>() - .unwrap(); + let data = state.app_data::>().unwrap(); let params = Form(MyParams { name: "John".to_string(), }); diff --git a/graphql-demo/Cargo.toml b/graphql-demo/Cargo.toml index 78f7b08..2771e01 100644 --- a/graphql-demo/Cargo.toml +++ b/graphql-demo/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" futures = "0.3.1" diff --git a/graphql-demo/src/main.rs b/graphql-demo/src/main.rs index 57ded8f..7a3ab46 100644 --- a/graphql-demo/src/main.rs +++ b/graphql-demo/src/main.rs @@ -28,6 +28,6 @@ async fn main() -> std::io::Result<()> { .default_service(web::to(|| async { "404" })) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/hello-world/Cargo.toml b/hello-world/Cargo.toml index 6f4f5bb..5cc1318 100644 --- a/hello-world/Cargo.toml +++ b/hello-world/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Nikolay Kim "] edition = "2018" [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" env_logger = "0.6" diff --git a/hello-world/src/main.rs b/hello-world/src/main.rs index 981e6d1..313cc23 100644 --- a/hello-world/src/main.rs +++ b/hello-world/src/main.rs @@ -18,7 +18,7 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/").to(index)) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/http-proxy/Cargo.toml b/http-proxy/Cargo.toml index e8e64c6..f9686c3 100644 --- a/http-proxy/Cargo.toml +++ b/http-proxy/Cargo.toml @@ -2,12 +2,11 @@ name = "http-proxy" version = "2.0.0" authors = ["Nikolay Kim ", "Rotem Yaari "] -workspace = ".." edition = "2018" [dependencies] actix-rt = "1.0.0" -actix-web = { version = "2.0.0-rc", features=["openssl"] } +actix-web = { version = "2.0.0", features=["openssl"] } clap = "2.32.0" futures = "0.3.1" failure = "0.1.3" diff --git a/http-proxy/src/main.rs b/http-proxy/src/main.rs index b5f50fc..4f26193 100644 --- a/http-proxy/src/main.rs +++ b/http-proxy/src/main.rs @@ -99,6 +99,6 @@ async fn main() -> std::io::Result<()> { }) .bind((listen_addr, listen_port))? .system_exit() - .start() + .run() .await } diff --git a/json/Cargo.toml b/json/Cargo.toml index cde8767..9c75d1f 100644 --- a/json/Cargo.toml +++ b/json/Cargo.toml @@ -6,7 +6,7 @@ workspace = ".." edition = "2018" [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" actix-service = "1.0.0" diff --git a/json/src/main.rs b/json/src/main.rs index 19005e4..c61640a 100644 --- a/json/src/main.rs +++ b/json/src/main.rs @@ -80,7 +80,7 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/").route(web::post().to(index))) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/json_error/Cargo.toml b/json_error/Cargo.toml index 909f315..c46a5d7 100644 --- a/json_error/Cargo.toml +++ b/json_error/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Kai Yao "] edition = "2018" [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" failure = "0.1" futures = "0.3" diff --git a/json_error/src/main.rs b/json_error/src/main.rs index 85a0421..fcf0a01 100644 --- a/json_error/src/main.rs +++ b/json_error/src/main.rs @@ -45,6 +45,6 @@ async fn main() -> io::Result<()> { }) .bind(ip_address) .expect("Can not bind to port 8000") - .start() + .run() .await } diff --git a/jsonrpc/Cargo.toml b/jsonrpc/Cargo.toml index d96a936..50e6f70 100644 --- a/jsonrpc/Cargo.toml +++ b/jsonrpc/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" workspace = ".." [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" bytes = "0.5" env_logger = "0.6" diff --git a/jsonrpc/src/main.rs b/jsonrpc/src/main.rs index 8a5260b..e5b33d9 100644 --- a/jsonrpc/src/main.rs +++ b/jsonrpc/src/main.rs @@ -114,7 +114,7 @@ impl ImplNetwork for ObjNetwork { delay_for(Duration::from_secs(d)).await; Ok(String::from("pong")) } - .boxed_local() + .boxed_local() } fn get(&self) -> u32 { @@ -153,6 +153,6 @@ async fn main() -> std::io::Result<()> { }) .bind("127.0.0.1:8080") .unwrap() - .start() + .run() .await } diff --git a/juniper/Cargo.toml b/juniper/Cargo.toml index 1e0739b..3dd9829 100644 --- a/juniper/Cargo.toml +++ b/juniper/Cargo.toml @@ -5,7 +5,7 @@ authors = ["pyros2097 "] edition = "2018" [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" env_logger = "0.7.1" serde = "1.0.103" diff --git a/juniper/src/main.rs b/juniper/src/main.rs index 7eb4a93..1e65e95 100644 --- a/juniper/src/main.rs +++ b/juniper/src/main.rs @@ -53,6 +53,6 @@ async fn main() -> io::Result<()> { .service(web::resource("/graphiql").route(web::get().to(graphiql))) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/middleware/Cargo.toml b/middleware/Cargo.toml index c2a201b..2a5e622 100644 --- a/middleware/Cargo.toml +++ b/middleware/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] actix-service = "1.0.0" actix-rt = "1.0.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" futures = "0.3.1" env_logger = "0.6" bytes = "0.5" diff --git a/middleware/src/main.rs b/middleware/src/main.rs index 0fc3db0..1598a2a 100644 --- a/middleware/src/main.rs +++ b/middleware/src/main.rs @@ -40,6 +40,6 @@ async fn main() -> std::io::Result<()> { })) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/multipart/Cargo.toml b/multipart/Cargo.toml index 1ee6fac..1fdd887 100644 --- a/multipart/Cargo.toml +++ b/multipart/Cargo.toml @@ -12,5 +12,5 @@ readme = "README.md" [dependencies] futures = "0.3.1" actix-multipart = "0.2.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" diff --git a/multipart/src/main.rs b/multipart/src/main.rs index dbc43c6..54db923 100644 --- a/multipart/src/main.rs +++ b/multipart/src/main.rs @@ -54,6 +54,6 @@ async fn main() -> std::io::Result<()> { ) }) .bind(ip)? - .start() + .run() .await } diff --git a/openssl/Cargo.toml b/openssl/Cargo.toml index 6445979..08063da 100644 --- a/openssl/Cargo.toml +++ b/openssl/Cargo.toml @@ -7,6 +7,6 @@ workspace = ".." [dependencies] actix-rt = "1.0.0" -actix-web = { version="2.0.0-rc", features=["openssl"] } +actix-web = { version="2.0.0", features=["openssl"] } env_logger = "0.6" openssl = "0.10" diff --git a/openssl/src/main.rs b/openssl/src/main.rs index 3ab12f5..ce050de 100644 --- a/openssl/src/main.rs +++ b/openssl/src/main.rs @@ -39,6 +39,6 @@ async fn main() -> io::Result<()> { }))) }) .bind_openssl("127.0.0.1:8443", builder)? - .start() + .run() .await } diff --git a/r2d2/Cargo.toml b/r2d2/Cargo.toml index bfef6c0..b3444c2 100644 --- a/r2d2/Cargo.toml +++ b/r2d2/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] actix-rt = "1.0.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" futures = "0.3.1" env_logger = "0.6" diff --git a/r2d2/src/main.rs b/r2d2/src/main.rs index 086025a..25e89ae 100644 --- a/r2d2/src/main.rs +++ b/r2d2/src/main.rs @@ -49,6 +49,6 @@ async fn main() -> io::Result<()> { .route("/{name}", web::get().to(index)) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/redis-session/Cargo.toml b/redis-session/Cargo.toml index 233484c..709e112 100644 --- a/redis-session/Cargo.toml +++ b/redis-session/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] actix-rt = "1.0.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-session = "0.3.0" actix-redis = { version = "0.8.0", features = ["web"] } env_logger = "0.6" diff --git a/redis-session/src/main.rs b/redis-session/src/main.rs index 25c314b..f9831a7 100644 --- a/redis-session/src/main.rs +++ b/redis-session/src/main.rs @@ -88,7 +88,7 @@ async fn main() -> std::io::Result<()> { .service(resource("/logout").route(post().to(logout))) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/redis/Cargo.toml b/redis/Cargo.toml index 09de77b..7c56038 100644 --- a/redis/Cargo.toml +++ b/redis/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] actix = "0.9.0" actix-rt = "1.0.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-redis = "0.8.0" futures = "0.3.1" redis-async = "0.6.1" diff --git a/redis/src/main.rs b/redis/src/main.rs index 2824ea1..4913478 100644 --- a/redis/src/main.rs +++ b/redis/src/main.rs @@ -93,6 +93,6 @@ async fn main() -> std::io::Result<()> { ) }) .bind("0.0.0.0:8080")? - .start() + .run() .await } diff --git a/run-in-thread/Cargo.toml b/run-in-thread/Cargo.toml index 2c6d964..e664d2c 100644 --- a/run-in-thread/Cargo.toml +++ b/run-in-thread/Cargo.toml @@ -6,6 +6,6 @@ edition = "2018" description = "Run actix-web in separate thread" [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" env_logger = "0.6" \ No newline at end of file diff --git a/run-in-thread/src/main.rs b/run-in-thread/src/main.rs index 8ade190..bcae81b 100644 --- a/run-in-thread/src/main.rs +++ b/run-in-thread/src/main.rs @@ -21,7 +21,7 @@ fn run_app(tx: mpsc::Sender) -> std::io::Result<()> { .service(web::resource("/").to(index)) }) .bind("127.0.0.1:8080")? - .start(); + .run(); // send server controller to main thread let _ = tx.send(srv.clone()); diff --git a/rustls/Cargo.toml b/rustls/Cargo.toml index ab2a1cd..fc8269a 100644 --- a/rustls/Cargo.toml +++ b/rustls/Cargo.toml @@ -12,6 +12,6 @@ path = "src/main.rs" [dependencies] env_logger = "0.5" rustls = "0.16" -actix-web = { version = "2.0.0-rc", features=["rustls"] } -actix-files = "0.2.0" +actix-web = { version = "2.0.0", features=["rustls"] } +actix-files = "0.2.1" actix-rt = "1.0.0" diff --git a/rustls/src/main.rs b/rustls/src/main.rs index abdd45d..b777f90 100644 --- a/rustls/src/main.rs +++ b/rustls/src/main.rs @@ -44,6 +44,6 @@ async fn main() -> std::io::Result<()> { .service(Files::new("/static", "static")) }) .bind_rustls("127.0.0.1:8443", config)? - .start() + .run() .await } diff --git a/server-sent-events/Cargo.toml b/server-sent-events/Cargo.toml index ba82cbf..48c9f49 100644 --- a/server-sent-events/Cargo.toml +++ b/server-sent-events/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] actix-rt = "1.0.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" env_logger = "0.6" futures = "0.3.1" tokio = "0.2" \ No newline at end of file diff --git a/server-sent-events/src/main.rs b/server-sent-events/src/main.rs index 5642100..bbfc51d 100644 --- a/server-sent-events/src/main.rs +++ b/server-sent-events/src/main.rs @@ -23,7 +23,7 @@ async fn main() -> std::io::Result<()> { .route("/broadcast/{msg}", web::get().to(broadcast)) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/simple-auth-server/Cargo.toml b/simple-auth-server/Cargo.toml index 90ac31f..c9313f4 100644 --- a/simple-auth-server/Cargo.toml +++ b/simple-auth-server/Cargo.toml @@ -7,7 +7,7 @@ workspace = ".." [dependencies] actix-identity = "0.2.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" argonautica = "0.2.0" chrono = { version = "0.4.6", features = ["serde"] } diff --git a/simple-auth-server/src/main.rs b/simple-auth-server/src/main.rs index 864766f..ddfbdfa 100644 --- a/simple-auth-server/src/main.rs +++ b/simple-auth-server/src/main.rs @@ -70,6 +70,6 @@ async fn main() -> std::io::Result<()> { ) }) .bind("127.0.0.1:3000")? - .start() + .run() .await } diff --git a/state/Cargo.toml b/state/Cargo.toml index 2c56b1d..adcb8bb 100644 --- a/state/Cargo.toml +++ b/state/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Nikolay Kim "] edition = "2018" [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" futures = "0.3.1" env_logger = "0.6" diff --git a/state/src/main.rs b/state/src/main.rs index 7e1e564..f7def8f 100644 --- a/state/src/main.rs +++ b/state/src/main.rs @@ -40,6 +40,6 @@ async fn main() -> io::Result<()> { .service(web::resource("/").to(index)) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/static_index/Cargo.toml b/static_index/Cargo.toml index bf93927..434e11c 100644 --- a/static_index/Cargo.toml +++ b/static_index/Cargo.toml @@ -9,6 +9,6 @@ edition = "2018" futures = "0.3.1" env_logger = "0.6" -actix-web = "2.0.0-rc" -actix-files = "0.2.0" +actix-web = "2.0.0" +actix-files = "0.2.1" actix-rt = "1.0.0" diff --git a/static_index/src/main.rs b/static_index/src/main.rs index 3b78f68..d3d05e6 100644 --- a/static_index/src/main.rs +++ b/static_index/src/main.rs @@ -16,6 +16,6 @@ async fn main() -> std::io::Result<()> { ) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/template_askama/Cargo.toml b/template_askama/Cargo.toml index 6ff166d..58b1047 100644 --- a/template_askama/Cargo.toml +++ b/template_askama/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Nikolay Kim "] edition = "2018" [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" env_logger = "0.6" askama = "0.8" diff --git a/template_askama/src/main.rs b/template_askama/src/main.rs index a2fe74c..d78d050 100644 --- a/template_askama/src/main.rs +++ b/template_askama/src/main.rs @@ -35,6 +35,6 @@ async fn main() -> std::io::Result<()> { App::new().service(web::resource("/").route(web::get().to(index))) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/template_handlebars/Cargo.toml b/template_handlebars/Cargo.toml index 036fa67..c27518e 100644 --- a/template_handlebars/Cargo.toml +++ b/template_handlebars/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Alexandru Tiniuc "] edition = "2018" [dependencies] -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" handlebars = "2.0.0" serde_json = "1.0" \ No newline at end of file diff --git a/template_handlebars/src/main.rs b/template_handlebars/src/main.rs index 8d2a826..c33f2db 100644 --- a/template_handlebars/src/main.rs +++ b/template_handlebars/src/main.rs @@ -54,6 +54,6 @@ async fn main() -> io::Result<()> { .service(user) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/template_tera/Cargo.toml b/template_tera/Cargo.toml index a1824d5..0775969 100644 --- a/template_tera/Cargo.toml +++ b/template_tera/Cargo.toml @@ -8,5 +8,5 @@ edition = "2018" [dependencies] env_logger = "0.6" tera = "1.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" diff --git a/template_tera/src/main.rs b/template_tera/src/main.rs index c2123ed..fd265ab 100644 --- a/template_tera/src/main.rs +++ b/template_tera/src/main.rs @@ -37,6 +37,6 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/").route(web::get().to(index))) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/template_yarte/Cargo.toml b/template_yarte/Cargo.toml index b536a48..5534412 100644 --- a/template_yarte/Cargo.toml +++ b/template_yarte/Cargo.toml @@ -13,7 +13,7 @@ env_logger = "0.7" yarte = { git = "https://github.com/botika/yarte", features = ["with-actix-web"] } actix-rt = "1.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" [build-dependencies] yarte = { git = "https://github.com/botika/yarte", features = ["with-actix-web"] } diff --git a/template_yarte/src/main.rs b/template_yarte/src/main.rs index 3d3c3e2..803473f 100644 --- a/template_yarte/src/main.rs +++ b/template_yarte/src/main.rs @@ -22,7 +22,7 @@ async fn main() -> std::io::Result<()> { // start http server HttpServer::new(move || App::new().wrap(Logger::default()).service(index)) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/todo/Cargo.toml b/todo/Cargo.toml index 70f0eed..e8084f0 100644 --- a/todo/Cargo.toml +++ b/todo/Cargo.toml @@ -5,8 +5,8 @@ version = "2.0.0" edition = "2018" [dependencies] -actix-web = "2.0.0-rc" -actix-files = "0.2.0" +actix-web = "2.0.0" +actix-files = "0.2.1" actix-session = "0.3.0" actix-rt = "1.0.0" dotenv = "0.13.0" diff --git a/todo/src/main.rs b/todo/src/main.rs index 54481e4..d464ad0 100644 --- a/todo/src/main.rs +++ b/todo/src/main.rs @@ -60,5 +60,5 @@ async fn main() -> io::Result<()> { }; debug!("Starting server"); - HttpServer::new(app).bind("localhost:8088")?.start().await + HttpServer::new(app).bind("localhost:8088")?.run().await } diff --git a/unix-socket/Cargo.toml b/unix-socket/Cargo.toml index 6b9e9b8..3e1e589 100644 --- a/unix-socket/Cargo.toml +++ b/unix-socket/Cargo.toml @@ -7,5 +7,5 @@ edition = "2018" [dependencies] env_logger = "0.6" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-rt = "1.0.0" diff --git a/unix-socket/src/main.rs b/unix-socket/src/main.rs index ddd193d..6178b7a 100644 --- a/unix-socket/src/main.rs +++ b/unix-socket/src/main.rs @@ -21,7 +21,7 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/").to(index)) }) .bind_uds("/tmp/actix-uds.socket")? - .start() + .run() .await } diff --git a/web-cors/backend/Cargo.toml b/web-cors/backend/Cargo.toml index 6114406..703f50b 100644 --- a/web-cors/backend/Cargo.toml +++ b/web-cors/backend/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] actix-rt = "1.0.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-cors = "0.2.0" serde = "1.0" serde_derive = "1.0" diff --git a/web-cors/backend/src/main.rs b/web-cors/backend/src/main.rs index 77cb835..55e2d7c 100644 --- a/web-cors/backend/src/main.rs +++ b/web-cors/backend/src/main.rs @@ -26,6 +26,6 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/user/info").route(web::post().to(user::info))) }) .bind("127.0.0.1:8000")? - .start() + .run() .await } diff --git a/websocket-chat/Cargo.toml b/websocket-chat/Cargo.toml index 353904d..dc2f35d 100644 --- a/websocket-chat/Cargo.toml +++ b/websocket-chat/Cargo.toml @@ -11,9 +11,9 @@ path = "src/main.rs" [dependencies] actix-rt = "1.0.0" actix = "0.9.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-web-actors = "2.0.0" -actix-files = "0.2.0" +actix-files = "0.2.1" rand = "0.6" bytes = "0.5.3" diff --git a/websocket-chat/src/main.rs b/websocket-chat/src/main.rs index 4ad583b..a9b7f6e 100644 --- a/websocket-chat/src/main.rs +++ b/websocket-chat/src/main.rs @@ -242,6 +242,6 @@ async fn main() -> std::io::Result<()> { .service(fs::Files::new("/static/", "static/")) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/websocket-tcp-chat/Cargo.toml b/websocket-tcp-chat/Cargo.toml index 38263f3..0b566c6 100644 --- a/websocket-tcp-chat/Cargo.toml +++ b/websocket-tcp-chat/Cargo.toml @@ -14,9 +14,9 @@ path = "src/client.rs" [dependencies] actix = "0.9.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-web-actors = "2.0.0" -actix-files = "0.2.0" +actix-files = "0.2.1" actix-rt = "1.0.0" actix-codec = "0.2.0" diff --git a/websocket-tcp-chat/src/main.rs b/websocket-tcp-chat/src/main.rs index 1944ec8..348d11e 100644 --- a/websocket-tcp-chat/src/main.rs +++ b/websocket-tcp-chat/src/main.rs @@ -253,6 +253,6 @@ async fn main() -> std::io::Result<()> { .service(fs::Files::new("/static/", "static/")) }) .bind("127.0.0.1:8080")? - .start() + .run() .await } diff --git a/websocket/Cargo.toml b/websocket/Cargo.toml index 5eb52b4..65d8ea8 100644 --- a/websocket/Cargo.toml +++ b/websocket/Cargo.toml @@ -15,9 +15,9 @@ path = "src/client.rs" [dependencies] actix = "0.9.0" actix-codec = "0.2.0" -actix-web = "2.0.0-rc" +actix-web = "2.0.0" actix-web-actors = "2.0.0" -actix-files = "0.2.0" +actix-files = "0.2.1" actix-rt = "1.0.0" awc = "1.0.1" env_logger = "0.6" diff --git a/websocket/src/main.rs b/websocket/src/main.rs index 379c37a..e1c7790 100644 --- a/websocket/src/main.rs +++ b/websocket/src/main.rs @@ -110,6 +110,6 @@ async fn main() -> std::io::Result<()> { }) // start http server on 127.0.0.1:8080 .bind("127.0.0.1:8080")? - .start() + .run() .await }