Update crates

This commit is contained in:
William Desportes 2024-09-28 14:01:17 +02:00
commit f24477c3e7
No known key found for this signature in database
GPG key ID: 90A0EF1B8251A889
4 changed files with 600 additions and 410 deletions

1017
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -8,11 +8,11 @@ edition = "2018"
[dependencies] [dependencies]
actix = "0.10.0" actix = "0.10.0"
actix-web = "3" actix-web = "3.3.3"
actix-web-actors = "3.0.0" actix-web-actors = "3.0.0"
uuid = { version = "0.8", features = ["serde", "v4"] } uuid = { version = "1.10.0", features = ["serde", "v4"] }
derive_more = "0.99.11" derive_more = { version = "1.0.0", features = ["full"] }
serde_json = "1.0.64" serde_json = "1.0.64"
serde = "1.0.124" serde = "1.0.124"
env_logger = "0.8.3" env_logger = "0.11.5"
rand = "0.8.3" rand = "0.8.3"

View file

@ -14,6 +14,13 @@ cargo build
cargo run cargo run
``` ```
## Test with docker
```sh
docker build ./ -t actix-chat
docker run --rm -p 8080:8080 actix-chat
```
## How to interact with the app ## How to interact with the app
### Connect ### Connect

View file

@ -12,7 +12,7 @@ pub enum Command {
} }
#[derive(Debug, Display, Error)] #[derive(Debug, Display, Error)]
#[display(fmt = "Invalid command: {}", msg)] #[display("Invalid command: {}", msg)]
pub struct CommandError { pub struct CommandError {
msg: &'static str, msg: &'static str,
} }