-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
55 lines (49 loc) · 1.43 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[package]
name = "menubar"
version = "0.0.2" # Remember to update html_root_url in lib.rs
authors = ["Mads Marquart <[email protected]>"]
edition = "2018"
description = "Cross-platform native menu library."
documentation = "https://docs.rs/menubar"
readme = "README.md"
repository = "https://github.com/madsmtm/menubar"
license = "MIT OR Apache-2.0"
keywords = ["menu", "context-menu", "native", "NSMenu", "HMENU"]
categories = [
"accessibility",
"api-bindings",
"gui",
# "os::linux-apis",
"os::macos-apis",
"os::windows-apis",
]
[dependencies]
raw-window-handle = { version = "0.5", default-features = false }
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.4.1"
[target.'cfg(target_os = "macos")'.dependencies.icrate]
version = "0.0.4"
features = [
"Foundation",
"Foundation_NSString",
"Foundation_NSArray",
"Foundation_NSThread",
"AppKit",
"AppKit_NSMenu",
"AppKit_NSMenuItem",
"AppKit_NSApplication",
]
[target.'cfg(target_os = "windows")'.dependencies]
ahash = { version = "0.8.2", default-features = false, features = ["std"] }
tinyvec = { version = "1.6.0", features = ["alloc"] }
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.42"
features = [
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
]
[dev-dependencies]
winit = { version = "=0.29.1-beta", default-features = false }
env_logger = "0.9"