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)); } }