1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

update actix web to stable version

This commit is contained in:
Rob Ede
2022-02-25 21:07:22 +00:00
parent c3a74c6823
commit 4dc9199781
61 changed files with 144 additions and 150 deletions

View File

@ -9,7 +9,7 @@ path = "src/main.rs"
[dependencies]
actix = "0.12"
actix-web = "4.0.0-rc.3"
actix-web = "4"
actix-web-actors = "4.0.0-beta.12"
env_logger = "0.9"

View File

@ -10,8 +10,8 @@ path = "src/main.rs"
[dependencies]
actix = "0.12"
actix-broker = "0.4"
actix-files = "0.6.0-beta.16"
actix-web = "4.0.0-rc.3"
actix-files = "0.6"
actix-web = "4"
actix-web-actors = "4.0.0-beta.12"
env_logger = "0.9"

View File

@ -14,8 +14,8 @@ path = "src/client.rs"
[dependencies]
actix = "0.12"
actix-codec = "0.4.1"
actix-files = "0.6.0-beta.16"
actix-web = "4.0.0-rc.3"
actix-files = "0.6"
actix-web = "4"
actix-web-actors = "4.0.0-beta.11"
byteorder = "1.2"

View File

@ -107,7 +107,7 @@ impl Handler<Connect> for ChatServer {
println!("Someone joined");
// notify all users in same room
self.send_message(&"Main".to_owned(), "Someone joined", 0);
self.send_message("Main", "Someone joined", 0);
// register session with random id
let id = self.rng.gen::<usize>();

View File

@ -9,8 +9,8 @@ path = "src/main.rs"
[dependencies]
actix = "0.12"
actix-files = "0.6.0-beta.16"
actix-web = "4.0.0-rc.3"
actix-files = "0.6"
actix-web = "4"
actix-web-actors = "4.0.0-beta.12"
env_logger = "0.9"

View File

@ -14,9 +14,9 @@ path = "src/client.rs"
[dependencies]
actix = "0.12"
actix-codec = "0.5"
actix-files = "0.6.0-beta.16"
actix-files = "0.6"
actix-rt = "2"
actix-web = "4.0.0-rc.3"
actix-web = "4"
actix-web-actors = "4.0.0-beta.12"
awc = "3.0.0-beta.21"