Skip to content

Commit

Permalink
chore: prepare for objc2 frameworks v0.3 (#117)
Browse files Browse the repository at this point in the history
These will have a bunch of default features enabled, so let's
pre-emptively disable them.
  • Loading branch information
madsmtm authored Jan 21, 2025
1 parent d0d1950 commit 53cf96f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 53cf96f

Please sign in to comment.