diff options
-rw-r--r-- | Cargo.lock | 6 | ||||
-rw-r--r-- | client/global.gd | 2 | ||||
-rw-r--r-- | server/discover/Cargo.toml | 2 | ||||
-rw-r--r-- | server/protocol/Cargo.toml | 2 | ||||
-rw-r--r-- | server/protocol/src/lib.rs | 14 | ||||
-rw-r--r-- | server/registry/Cargo.toml | 2 | ||||
-rw-r--r-- | server/src/network/register.rs | 2 |
7 files changed, 20 insertions, 10 deletions
@@ -1178,7 +1178,7 @@ dependencies = [ [[package]] name = "hurrycurry-discover" -version = "0.1.0" +version = "2.1.0" dependencies = [ "anyhow", "env_logger", @@ -1194,7 +1194,7 @@ dependencies = [ [[package]] name = "hurrycurry-protocol" -version = "0.1.0" +version = "7.3.0" dependencies = [ "bincode", "glam", @@ -1203,7 +1203,7 @@ dependencies = [ [[package]] name = "hurrycurry-registry" -version = "0.1.0" +version = "2.1.0" dependencies = [ "anyhow", "env_logger", diff --git a/client/global.gd b/client/global.gd index 732363ee..1d6fb630 100644 --- a/client/global.gd +++ b/client/global.gd @@ -22,7 +22,7 @@ extends Node signal using_joypad_change(using: bool) signal using_touch_change(using: bool) -const VERSION := "2.0.0" +const VERSION := "2.1.0" var default_profile := { "username": "Giovanni", diff --git a/server/discover/Cargo.toml b/server/discover/Cargo.toml index 8ebdef8f..fabc71fd 100644 --- a/server/discover/Cargo.toml +++ b/server/discover/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hurrycurry-discover" -version = "0.1.0" +version = "2.1.0" edition = "2021" [dependencies] diff --git a/server/protocol/Cargo.toml b/server/protocol/Cargo.toml index 2a7a989c..a9210d33 100644 --- a/server/protocol/Cargo.toml +++ b/server/protocol/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hurrycurry-protocol" -version = "0.1.0" +version = "7.3.0" edition = "2021" [dependencies] diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index d26d8d18..1acf7997 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -21,14 +21,24 @@ use bincode::{ }; use glam::{IVec2, Vec2}; use serde::{Deserialize, Serialize}; -use std::{collections::HashSet, fmt::Display}; +use std::{collections::HashSet, fmt::Display, sync::LazyLock}; pub use glam; pub mod movement; pub mod registry; -pub const VERSION: (u32, u32) = (7, 3); +pub static VERSION: LazyLock<(u32, u32)> = LazyLock::new(|| { + ( + env!("CARGO_PKG_VERSION_MAJOR").parse().unwrap(), + env!("CARGO_PKG_VERSION_MINOR").parse().unwrap(), + ) +}); + +#[test] +fn test_version_parse() { + let _ = *VERSION; +} pub const BINCODE_CONFIG: Configuration<LittleEndian, Varint, Limit<4096>> = standard().with_limit(); diff --git a/server/registry/Cargo.toml b/server/registry/Cargo.toml index 49f58a46..7adaaa28 100644 --- a/server/registry/Cargo.toml +++ b/server/registry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hurrycurry-registry" -version = "0.1.0" +version = "2.1.0" edition = "2021" [dependencies] diff --git a/server/src/network/register.rs b/server/src/network/register.rs index f75b8639..2bd4fa92 100644 --- a/server/src/network/register.rs +++ b/server/src/network/register.rs @@ -135,7 +135,7 @@ impl Register { uri, players: self.players, secret: self.secret, - version: VERSION, + version: *VERSION, }) .send() .await?; |