From 87012c6a6f0f6a715d0c364a2f31413a0a5829db Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sun, 16 Jul 2023 12:53:23 -0500 Subject: [PATCH] chore: Update to Bevy 0.11. --- Cargo.toml | 9 +++++++-- src/lib.rs | 5 ++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e5aefae..88104aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,11 +9,16 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy = { version = "0.10", default-features = false } +bevy = { version = "0.11", default-features = false } ctrlc = "3" [target.'cfg(windows)'.dependencies] -windows = { version = "0.48", features = ["Win32_Foundation", "Win32_System_Power", "Win32_System_Registry", "Win32_System_SystemServices"] } +windows = { version = "0.48", features = [ + "Win32_Foundation", + "Win32_System_Power", + "Win32_System_Registry", + "Win32_System_SystemServices", +] } [package.metadata.release] publish = false diff --git a/src/lib.rs b/src/lib.rs index 585f0c3..e3e53d4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -74,8 +74,7 @@ pub struct FullThrottlePlugin { impl Plugin for FullThrottlePlugin { fn build(&self, app: &mut App) { app.insert_resource(*self) - .add_startup_system(setup) - .add_system(focus_change) - .add_system(exit.in_base_set(CoreSet::PostUpdate)); + .add_systems(Startup, setup) + .add_systems(PostUpdate, (focus_change, exit)); } }