From 25d34ee4e148e9f8b69b4f7be98985f7254da0bf Mon Sep 17 00:00:00 2001 From: cirm Date: Thu, 5 Nov 2020 21:11:14 +0200 Subject: [PATCH] Upgrade websocket-chat-broker example to actix V3 and actix-broker 3.1 (#383) Co-authored-by: Madis Jullinen --- websocket-chat-broker/Cargo.toml | 12 ++++++------ websocket-chat-broker/src/main.rs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/websocket-chat-broker/Cargo.toml b/websocket-chat-broker/Cargo.toml index 137db28d..fd004d3a 100644 --- a/websocket-chat-broker/Cargo.toml +++ b/websocket-chat-broker/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "websocket-chat-broker" -version = "0.1.0" +version = "0.1.1" authors = [ "Chris Ricketts ", "Rob Ede ", @@ -12,12 +12,12 @@ name = "server" path = "src/main.rs" [dependencies] -actix = "0.9" -actix-broker = "0.3" -actix-files = "0.2" +actix = "0.10" +actix-broker = "0.3.1" +actix-files = "0.4" actix-rt = "1" -actix-web = "2" -actix-web-actors = "2" +actix-web = "3" +actix-web-actors = "3" env_logger = "0.7" futures = "0.3" log = "0.4" diff --git a/websocket-chat-broker/src/main.rs b/websocket-chat-broker/src/main.rs index 094b031a..31078f0d 100644 --- a/websocket-chat-broker/src/main.rs +++ b/websocket-chat-broker/src/main.rs @@ -17,7 +17,7 @@ async fn chat_route( ws::start(WsChatSession::default(), &req, stream) } -#[actix_rt::main] +#[actix_web::main] async fn main() -> std::io::Result<()> { env_logger::from_env(env_logger::Env::default().default_filter_or("info")).init();