chore: prepare for objc2 frameworks v0.3 (#117)

These will have a bunch of default features enabled, so let's
pre-emptively disable them.
This commit is contained in:
Mads Marquart
2025-01-21 23:26:19 +01:00
committed by GitHub
parent d0d1950a02
commit 53cf96f91f
2 changed files with 5 additions and 2 deletions

View File

@@ -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"

View File

@@ -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
}