Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
108 lines (100 loc) · 2.64 KB
/
Copy pathCargo.toml
File metadata and controls
108 lines (100 loc) · 2.64 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[package]
name = "muda"
version = "0.21.1"
description = "Menu Utilities for Desktop Applications"
edition = "2021"
keywords = ["windowing", "menu"]
license = "Apache-2.0 OR MIT"
readme = "README.md"
repository = "https://github.com/tauri-apps/muda"
documentation = "https://docs.rs/muda"
categories = ["gui"]
rust-version = "1.90"
include = [
"README.md",
"build.rs",
"src/**/*.rs",
"Cargo.toml",
"LICENSE-APACHE",
"LICENSE-MIT",
"LICENSE.spdx",
]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["gtk3"]
gtk3 = ["dep:gtk", "dep:libc"]
gtk4 = ["dep:gtk4", "dep:libc"]
common-controls-v6 = []
snapshot = []
serde = ["dep:serde", "dpi/serde", "keyboard-types/serde"]
[dependencies]
crossbeam-channel = "0.5"
keyboard-types = "0.8"
thiserror = "2"
serde = { version = "1", optional = true }
dpi = "0.1"
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = ">=0.60, <=0.61"
features = [
"Win32_UI_WindowsAndMessaging",
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_UI_Shell",
"Win32_Globalization",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_System_SystemServices",
"Win32_UI_Accessibility",
"Win32_UI_HiDpi",
"Win32_System_LibraryLoader",
"Win32_UI_Controls",
]
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
gtk = { version = "0.18", optional = true }
gtk4 = { version = "0.11", optional = true, features = ["v4_12"] }
# Only to resolve WebKitGTK's editing commands at runtime; see `platform_impl::gtk_common::webkit`.
libc = { version = "0.2", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6.1"
objc2-core-foundation = { version = "0.3.0", default-features = false, features = [
"std",
"CFCGTypes",
] }
objc2-foundation = { version = "0.3.0", default-features = false, features = [
"std",
"NSAttributedString",
"NSData",
"NSDictionary",
"NSGeometry",
"NSString",
"NSThread",
] }
objc2-app-kit = { version = "0.3.0", default-features = false, features = [
"std",
"objc2-core-foundation",
"NSApplication",
"NSAttributedString",
"NSCell",
"NSEvent",
"NSImage",
"NSMenu",
"NSMenuItem",
"NSResponder",
"NSRunningApplication",
"NSScreen",
"NSView",
"NSWindow",
] }
png = "0.18"
[dev-dependencies]
winit = "0.30"
tao = "0.37"
wry = "0.57"
image = { version = "0.25", default-features = false, features = ["png"] }
winit-gtk4 = { package = "winit", git = "https://github.com/tauri-apps/winit-gtk4", default-features = false, features = [
"gtk4",
] }
[[example]]
name = "winit_gtk4"
required-features = ["gtk4"]