From 53cf96f91f3bed59a7b7859f8aba31cda92d2b23 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Tue, 21 Jan 2025 23:26:19 +0100 Subject: [PATCH] chore: prepare for `objc2` frameworks v0.3 (#117) These will have a bunch of default features enabled, so let's pre-emptively disable them. --- Cargo.toml | 5 ++++- src/lib.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cac1f7f..19ccfe0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,10 @@ serde = { version = "1", optional = true, features = ["derive"] } [target.'cfg(target_os = "macos")'.dependencies] objc2 = "0.5.2" -objc2-app-kit = { version = "0.2.2", features = ["NSEvent"] } +objc2-app-kit = { version = "0.2.2", default-features = false, features = [ + "std", + "NSEvent", +] } [target.'cfg(target_os = "windows")'.dependencies.windows-sys] version = "0.59" diff --git a/src/lib.rs b/src/lib.rs index abcfde0..4e04181 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,8 +93,8 @@ impl GlobalHotKeyEvent { pub fn id(&self) -> u32 { self.id } - /// Returns the state of the associated [`HotKey`]. + /// Returns the state of the associated [`HotKey`]. pub fn state(&self) -> HotKeyState { self.state }