aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/Cargo.toml14
-rw-r--r--server/client-lib/Cargo.toml2
-rw-r--r--server/protocol/Cargo.toml2
-rw-r--r--server/replaytool/Cargo.toml16
-rw-r--r--server/src/entity/customers/mod.rs2
5 files changed, 18 insertions, 18 deletions
diff --git a/server/Cargo.toml b/server/Cargo.toml
index 929f806d..789bb76a 100644
--- a/server/Cargo.toml
+++ b/server/Cargo.toml
@@ -6,17 +6,17 @@ default-run = "hurrycurry-server"
[dependencies]
log = "0.4.22"
-env_logger = "0.11.3"
+env_logger = "0.11.5"
anyhow = "1.0.86"
-serde = { version = "1.0.204", features = ["derive"] }
-tokio = { version = "1.38.0", features = ["full"] }
-serde_json = "1.0.120"
+serde = { version = "1.0.205", features = ["derive"] }
+tokio = { version = "1.39.2", features = ["full"] }
+serde_json = "1.0.122"
tokio-tungstenite = "0.23.1"
futures-util = "0.3.30"
-serde_yml = "0.0.10"
-rand = "0.9.0-alpha.1"
+serde_yml = "0.0.11"
+rand = "0.9.0-alpha.2"
shlex = "1.3.0"
-clap = { version = "4.5.8", features = ["derive"] }
+clap = { version = "4.5.15", features = ["derive"] }
fake = "2.9.2"
pollster = "0.3.0"
bincode = "2.0.0-rc.3"
diff --git a/server/client-lib/Cargo.toml b/server/client-lib/Cargo.toml
index 45361d29..5644a905 100644
--- a/server/client-lib/Cargo.toml
+++ b/server/client-lib/Cargo.toml
@@ -10,7 +10,7 @@ tungstenite = { version = "0.23.0", optional = true, features = [
] }
tokio-tungstenite = { version = "0.23.1", optional = true }
tokio = { version = "1.39.2", features = ["net"], optional = true }
-serde_json = "1.0.120"
+serde_json = "1.0.122"
bincode = "2.0.0-rc.3"
log = "0.4.22"
anyhow = "1.0.86"
diff --git a/server/protocol/Cargo.toml b/server/protocol/Cargo.toml
index 6c51c86d..9c3f26e8 100644
--- a/server/protocol/Cargo.toml
+++ b/server/protocol/Cargo.toml
@@ -4,6 +4,6 @@ version = "0.1.0"
edition = "2021"
[dependencies]
-serde = { version = "1.0.204", features = ["derive"] }
+serde = { version = "1.0.205", features = ["derive"] }
glam = { version = "0.28.0", features = ["serde"] }
bincode = { version = "2.0.0-rc.3", features = ["serde", "derive"] }
diff --git a/server/replaytool/Cargo.toml b/server/replaytool/Cargo.toml
index 9d48392e..fb27ed4b 100644
--- a/server/replaytool/Cargo.toml
+++ b/server/replaytool/Cargo.toml
@@ -5,18 +5,18 @@ edition = "2021"
[dependencies]
log = "0.4.22"
-env_logger = "0.11.3"
+env_logger = "0.11.5"
anyhow = "1.0.86"
-serde = { version = "1.0.204", features = ["derive"] }
-tokio = { version = "1.38.0", features = ["full"] }
-serde_json = "1.0.120"
+serde = { version = "1.0.205", features = ["derive"] }
+tokio = { version = "1.39.2", features = ["full"] }
+serde_json = "1.0.122"
tokio-tungstenite = { version = "0.23.1", features = [
"rustls-tls-native-roots",
] }
futures-util = "0.3.30"
-rand = "0.9.0-alpha.1"
-clap = { version = "4.5.8", features = ["derive"] }
-async-compression = { version = "0.4.11", features = ["zstd", "tokio"] }
-rustls = { version = "0.23.10", features = ["ring"] }
+rand = "0.9.0-alpha.2"
+clap = { version = "4.5.15", features = ["derive"] }
+async-compression = { version = "0.4.12", features = ["zstd", "tokio"] }
+rustls = { version = "0.23.12", features = ["ring"] }
hurrycurry-protocol = { path = "../protocol" }
diff --git a/server/src/entity/customers/mod.rs b/server/src/entity/customers/mod.rs
index 97b94942..221351a5 100644
--- a/server/src/entity/customers/mod.rs
+++ b/server/src/entity/customers/mod.rs
@@ -106,7 +106,7 @@ impl EntityT for Customers {
.movement
.input(path.next_direction(playerdata.position()), false);
if path.is_done() {
- let demand = DemandIndex(random::<usize>() % self.demands.len());
+ let demand = DemandIndex(random::<u32>() as usize % self.demands.len());
self.cpackets.push_back(PacketS::Communicate {
message: Some(Message::Item(self.demands[demand.0].from)),
persist: true,