diff options
Diffstat (limited to 'server/replaytool')
-rw-r--r-- | server/replaytool/Cargo.toml | 24 | ||||
-rw-r--r-- | server/replaytool/src/main.rs | 9 |
2 files changed, 18 insertions, 15 deletions
diff --git a/server/replaytool/Cargo.toml b/server/replaytool/Cargo.toml index 9d5ac20a..dfc0db64 100644 --- a/server/replaytool/Cargo.toml +++ b/server/replaytool/Cargo.toml @@ -4,19 +4,19 @@ version = "0.1.0" edition = "2021" [dependencies] -log = "0.4.22" -env_logger = "0.11.5" -anyhow = "1.0.89" -serde = { version = "1.0.210", features = ["derive"] } -tokio = { version = "1.40.0", features = ["full"] } -serde_json = "1.0.128" -tokio-tungstenite = { version = "0.24.0", features = [ +log = "0.4.27" +env_logger = "0.11.8" +anyhow = "1.0.98" +serde = { version = "1.0.219", features = ["derive"] } +tokio = { version = "1.45.1", features = ["full"] } +serde_json = "1.0.140" +tokio-tungstenite = { version = "0.26.2", features = [ "rustls-tls-native-roots", ] } -futures-util = "0.3.30" -rand = "0.9.0-alpha.2" -clap = { version = "4.5.18", features = ["derive"] } -async-compression = { version = "0.4.12", features = ["zstd", "tokio"] } -rustls = { version = "0.23.13", features = ["ring"] } +futures-util = "0.3.31" +rand = "0.9.1" +clap = { version = "4.5.39", features = ["derive"] } +async-compression = { version = "0.4.23", features = ["zstd", "tokio"] } +rustls = { version = "0.23.27", features = ["ring"] } hurrycurry-protocol = { path = "../protocol" } diff --git a/server/replaytool/src/main.rs b/server/replaytool/src/main.rs index e9fa8003..a4b966f7 100644 --- a/server/replaytool/src/main.rs +++ b/server/replaytool/src/main.rs @@ -117,7 +117,7 @@ async fn main() -> anyhow::Result<()> { info!("{addr} connected via ws"); sock.send(tokio_tungstenite::tungstenite::Message::Text( - serde_json::to_string(&PacketC::ReplayStart).unwrap(), + serde_json::to_string(&PacketC::ReplayStart).unwrap().into(), )) .await?; 'outer: while let Some(Ok(message)) = sock.next().await { @@ -142,7 +142,8 @@ async fn main() -> anyhow::Result<()> { }, error: true, }) - .unwrap(), + .unwrap() + .into(), )) .await?; } @@ -158,7 +159,9 @@ async fn main() -> anyhow::Result<()> { while next_event.ts < time { debug!("<- {:?}", next_event.packet); sock.send(tokio_tungstenite::tungstenite::Message::Text( - serde_json::to_string(&next_event.packet).unwrap(), + serde_json::to_string(&next_event.packet) + .unwrap() + .into(), )) .await?; |