From 90adb70474cf1b5c70e668844e2076a0028a04d1 Mon Sep 17 00:00:00 2001 From: earomc Date: Sun, 18 Feb 2024 10:14:25 +0100 Subject: [PATCH] Fix game not starting on windows, update Cargo.toml --- Cargo.lock | 4 ++-- Cargo.toml | 6 +++--- src/main.rs | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9b7014c..4d87484 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1772,8 +1772,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22686f4785f02a4fcc856d3b3bb19bf6c8160d103f7a99cc258bddd0251dc7f2" [[package]] -name = "pong_ggez" -version = "0.1.0" +name = "pong" +version = "1.0.0" dependencies = [ "ggez", "rand", diff --git a/Cargo.toml b/Cargo.toml index 225bcc3..5ec48d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "pong_ggez" -version = "0.1.0" +name = "pong" +version = "1.0.0" edition = "2021" - +authors = ["earomc"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/src/main.rs b/src/main.rs index 275d193..7fdc97e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,4 @@ +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] mod player; mod ball; mod scores_display;