-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
172 lines (158 loc) · 4.12 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[package]
name = "winio"
version = "0.3.2"
edition = "2021"
description = "Single-threaded async GUI runtime based on compio."
license = "MIT"
authors = ["Berrysoft <Strawberry_Str@hotmail.com>"]
readme = "README.md"
repository = "https://github.com/compio-rs/winio"
categories = ["asynchronous", "gui"]
keywords = ["async", "gui"]
[dependencies]
compio = "0.13.0"
compio-log = "0.1.0"
cfg-if = "1"
euclid = "0.22"
futures-util = { version = "0.3", features = ["alloc"] }
futures-channel = "0.3"
image = { version = "0.25", default-features = false }
once_cell = "1"
rgb = "0.8"
slab = "0.4"
scoped-tls = "1.0"
taffy = "0.6"
[target.'cfg(windows)'.dependencies]
widestring = "1"
windows-sys = { version = "0.59", features = [
"Win32_Foundation",
"Win32_Globalization",
"Win32_Graphics_Gdi",
"Win32_Graphics_Dwm",
"Win32_Networking_WinSock",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_IO",
"Win32_System_LibraryLoader",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_System_WindowsProgramming",
"Win32_UI_Accessibility",
"Win32_UI_Controls",
"Win32_UI_HiDpi",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
] }
windows = { version = "0.58", features = [
"Foundation_Numerics",
"Win32_Foundation",
"Win32_Graphics_Direct2D",
"Win32_Graphics_Direct2D_Common",
"Win32_Graphics_DirectWrite",
"Win32_Graphics_Dxgi_Common",
"Win32_System_Com",
"Win32_UI_Shell",
"Win32_UI_Shell_Common",
] }
slim-detours-sys = "0.2"
sync-unsafe-cell = "0.1"
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.10"
core-graphics = "0.24"
foreign-types-shared = "0.3"
block2 = "0.5"
objc2 = "0.5"
objc2-foundation = { version = "0.2", features = [
"NSAffineTransform",
"NSAttributedString",
"NSDate",
"NSDictionary",
"NSEnumerator",
"NSNotification",
"NSObjCRuntime",
"NSRunLoop",
"NSString",
"NSThread",
"NSURL",
"NSUserDefaults",
] }
objc2-app-kit = { version = "0.2", features = [
"block2",
"objc2-quartz-core",
"NSAlert",
"NSApplication",
"NSAttributedString",
"NSBitmapImageRep",
"NSButton",
"NSButtonCell",
"NSCell",
"NSColor",
"NSColorSpace",
"NSComboBox",
"NSControl",
"NSEvent",
"NSFont",
"NSFontDescriptor",
"NSGraphics",
"NSImage",
"NSImageRep",
"NSMatrix",
"NSOpenPanel",
"NSPanel",
"NSProgressIndicator",
"NSResponder",
"NSRunningApplication",
"NSSavePanel",
"NSScreen",
"NSSecureTextField",
"NSStringDrawing",
"NSText",
"NSTextField",
"NSTrackingArea",
"NSView",
"NSWindow",
"NSWindowScripting",
] }
objc2-uniform-type-identifiers = { version = "0.2", features = ["UTType"] }
objc2-quartz-core = { version = "0.2", features = [
"CALayer",
"CAGradientLayer",
"CAShapeLayer",
"CATextLayer",
] }
[target.'cfg(not(any(windows, target_os = "macos")))'.dependencies]
gtk4 = { version = "0.9", optional = true, features = ["v4_14"] }
pangocairo = { version = "0.20", optional = true }
cxx = { version = "1.0", optional = true, features = ["c++17"] }
[dev-dependencies]
compio = { version = "0.13.0", features = ["time", "native-tls"] }
cyper = { version = "0.2.0", default-features = false, features = [
"rustls",
"http2",
"http3-altsvc",
] }
rustls = { version = "0.23", default-features = false, features = ["ring"] }
dirs = "5.0"
futures-util = "0.3"
image = { version = "0.25", default-features = false, features = [
"default-formats",
] }
tracing-subscriber = "0.3"
[build-dependencies]
embed-resource = "2"
cxx-build = { version = "1.0", optional = true }
qt-build-utils = { version = "0.6", optional = true }
[features]
default = ["qt"]
gtk = ["dep:gtk4", "dep:pangocairo"]
qt = ["dep:cxx", "dep:cxx-build", "dep:qt-build-utils"]
enable_log = ["compio/enable_log", "compio-log/enable_log"]
nightly = ["compio/nightly", "cyper/nightly"]
objc-static = [
"objc2/unstable-static-class-inlined",
"objc2/unstable-static-sel-inlined",
"objc2-foundation/unstable-static-nsstring",
]
[profile.release]
lto = true
codegen-units = 1