forked from DioxusLabs/blitz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
269 lines (239 loc) · 8.22 KB
/
Copy pathCargo.toml
File metadata and controls
269 lines (239 loc) · 8.22 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
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
[workspace]
members = [
"packages/accesskit_xplat",
"packages/debug_timer",
"packages/blitz-traits",
"packages/blitz-dom",
"packages/blitz-html",
"packages/blitz-net",
"packages/blitz-paint",
"packages/blitz-shell",
"packages/blitz",
"packages/stylo_taffy",
"packages/dioxus-native",
"packages/dioxus-native-dom",
"apps/browser",
"apps/readme",
"apps/bump",
"wpt/runner",
"examples/counter",
"examples/todomvc",
"examples/wgpu_texture",
]
exclude = ["sites"]
resolver = "2"
[workspace.package]
version = "0.3.0-alpha.2"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/dioxuslabs/blitz"
repository = "https://github.com/dioxuslabs/blitz"
categories = ["gui"]
edition = "2024"
rust-version = "1.92.0"
[workspace.dependencies]
# Blitz dependencies(in-repo)
blitz = { version = "=0.3.0-alpha.2", path = "./packages/blitz" }
blitz-dom = { version = "=0.3.0-alpha.2", path = "./packages/blitz-dom", default-features = false }
blitz-html = { version = "=0.3.0-alpha.2", path = "./packages/blitz-html", default-features = false }
blitz-net = { version = "=0.3.0-alpha.2", path = "./packages/blitz-net", default-features = false }
blitz-paint = { version = "=0.3.0-alpha.2", path = "./packages/blitz-paint", default-features = false }
blitz-shell = { version = "=0.3.0-alpha.2", path = "./packages/blitz-shell", default-features = false }
blitz-traits = { version = "=0.3.0-alpha.2", path = "./packages/blitz-traits", default-features = false }
stylo_taffy = { version = "=0.3.0-alpha.2", path = "./packages/stylo_taffy", default-features = false }
dioxus-native = { version = "0.7.0", path = "./packages/dioxus-native", default-features = false }
dioxus-native-dom = { version = "0.7.0", path = "./packages/dioxus-native-dom", default-features = false }
debug_timer = { version = "0.1.2", path = "./packages/debug_timer" }
accesskit_xplat = { version = "0.1", path = "./packages/accesskit_xplat", default-features = false }
# Servo dependencies
style = { version = "0.16.0", package = "stylo" }
style_traits = { version = "0.16.0", package = "stylo_traits" }
style_atoms = { version = "0.16.0", package = "stylo_atoms" }
style_config = { version = "0.16.0", package = "stylo_static_prefs" }
style_dom = { version = "0.16.0", package = "stylo_dom" }
selectors = { version = "0.37.0", package = "selectors" }
cssparser = { version = "0.36" }
# HTML5ever dependencies
markup5ever = "0.39.0" # needs to match stylo web_atoms version
html5ever = "0.39.0" # needs to match stylo web_atoms version
xml5ever = "0.39.0" # needs to match stylo web_atoms version
# Other Servo dependencies
euclid = "0.22"
atomic_refcell = "0.1.13"
app_units = "0.7.5"
smallvec = "1"
# DioxusLabs dependencies
dioxus = { version = "0.7.3" }
dioxus-core = { version = "0.7.3" }
dioxus-html = { version = "0.7.3" }
dioxus-hooks = { version = "0.7.3" }
dioxus-signals = { version = "0.7.3" }
dioxus-stores = { version = "0.7.3" }
dioxus-asset-resolver = { version = "0.7.3" }
manganis = { version = "0.7.3" }
dioxus-document = { version = "0.7.3" }
dioxus-history = { version = "0.7.3" }
# Dioxus hot reload
dioxus-devtools = { version = "0.7.3" }
dioxus-cli-config = { version = "0.7.3" }
# Dioxus Prelude
dioxus-core-macro = { version = "0.7.3" }
# Taffy + Parley + Fontations
taffy = { version = "0.10.1", default-features = false, features = [
"std",
"flexbox",
"grid",
"block_layout",
"content_size",
"calc",
"detailed_layout_info",
] }
parley = { version = "0.9", default-features = false, features = ["std"] }
skrifa = { version = "0.40", default-features = false, features = [
"std",
] } # Should match parley and vello versions
# AnyRender
anyrender = { version = "0.8" }
anyrender_serialize = { version = "0.1" }
anyrender_vello = { version = "0.8" }
anyrender_vello_cpu = { version = "0.10" }
anyrender_vello_hybrid = { version = "0.3" }
anyrender_skia = { version = "0.5" }
anyrender_svg = { version = "0.9" }
wgpu_context = { version = "0.4" }
# Linebender + Fontations + WGPU + SVG
color = "0.3"
linebender_resource_handle = "0.1"
peniko = "0.6.0"
kurbo = "0.13"
wgpu = "28"
usvg = "0.46"
# Windowing & Input
raw-window-handle = "0.6.0"
winit = { version = "=0.31.0-beta.2" }
accesskit = "0.24"
arboard = { version = "3.4.1", default-features = false }
rfd = { version = "0.17.1", default-features = false }
keyboard-types = "0.7"
cursor-icon = "1"
# IO & Networking
url = "2.5.0"
http = "1.1.0"
data-url = "0.3.1"
tokio = "1.42"
reqwest = { version = "0.13", default-features = false }
reqwest-middleware = { version = "0.5.1", default-features = false }
http-cache-reqwest = { version = "=1.0.0-alpha.6", default-features = false }
http-cache = { version = "=1.0.0-alpha.6", default-features = false }
# Media & Decoding
image = { version = "=0.25.6", default-features = false }
wuff = "0.2"
html-escape = "0.2.13"
percent-encoding = "2.3.1"
png = "0.18"
serde = "1"
# Dioxus Native
webbrowser = "1.0"
# WASM
wasm-bindgen-futures = "0.4"
# Other dependencies
rustc-hash = "2.1.2"
bytes = "1.7.1"
slab = "0.4.9"
tracing = "0.1.40"
tracing-subscriber = "0.3"
futures-util = "0.3.30"
futures-intrusive = "0.5.0"
pollster = "0.4"
smol_str = "0.3"
bitflags = "2.8.0"
bytemuck = "1"
rayon = "1"
thread_local = "1"
[profile.profile]
inherits = "release"
debug = true
[profile.production]
inherits = "release"
opt-level = 3
debug = false
lto = true
codegen-units = 1
strip = true
incremental = false
[profile.p2]
inherits = "production"
opt-level = 2
[profile.small]
inherits = "production"
opt-level = "s"
panic = "abort"
[profile.small-panic]
inherits = "small"
panic = "unwind"
[profile.tiny]
inherits = "small"
opt-level = "z"
# This is a "virtual package"
# It is not meant to be published, but is used so "cargo run --example XYZ" works properly
[package]
name = "blitz-examples"
version = "0.0.1"
authors = ["Jonathan Kelley"]
edition = "2024"
description = "Top level crate for Blitz"
license = "MIT OR Apache-2.0"
keywords = ["dom", "ui", "gui", "react", "wasm"]
rust-version = "1.89.0"
publish = false
[dev-dependencies]
anyrender = { workspace = true }
anyrender_vello = { workspace = true }
anyrender_vello_cpu = { workspace = true, features = ["multithreading"] }
anyrender_vello_hybrid = { workspace = true }
blitz-dom = { workspace = true, features = ["default"] }
blitz-html = { workspace = true }
blitz-traits = { workspace = true }
blitz-paint = { workspace = true }
blitz-shell = { workspace = true }
blitz-net = { workspace = true }
blitz = { workspace = true, features = ["net"] }
dioxus = { workspace = true }
dioxus-native = { workspace = true, features = [
"vello",
"floats",
"svg",
"prelude",
] }
euclid = { workspace = true }
reqwest = { workspace = true }
tokio = { workspace = true, features = ["macros"] }
image = { workspace = true }
png = { workspace = true }
peniko = { workspace = true }
env_logger = "0.11"
tracing-subscriber = "0.3"
# [patch.crates-io]
# anyrender = { path = "../anyrender/crates/anyrender" }
# anyrender_skia = { path = "../anyrender/crates/anyrender_skia" }
# anyrender_vello = { path = "../anyrender/crates/anyrender_vello" }
# anyrender_vello_cpu = { path = "../anyrender/crates/anyrender_vello_cpu" }
# anyrender_vello_hybrid = { path = "../anyrender/crates/anyrender_vello_hybrid" }
# anyrender_svg = { path = "../anyrender/crates/anyrender_svg" }
# wgpu_context = { path = "../anyrender/crates/wgpu_context" }
# vello = { path = "../vello/vello" }
# vello_cpu = { path = "../vello/sparse_strips/vello_cpu" }
# vello_hybrid = { path = "../vello/sparse_strips/vello_hybrid" }
# vello_common = { path = "../vello/sparse_strips/vello_common" }
# [patch.crates-io]
# style = { path = "../stylo/style", package = "stylo" }
# style_traits = { path = "../stylo/style_traits", package = "stylo_traits" }
# style_atoms = { path = "../stylo/stylo_atoms", package = "stylo_atoms" }
# style_config = { path = "../stylo/stylo_config", package = "stylo_config" }
# style_dom = { path = "../stylo/stylo_dom", package = "stylo_dom" }
# selectors = { path = "../stylo/selectors", package = "selectors" }
# [patch.crates-io]
# [patch."https://github.com/dioxuslabs/taffy"]
# taffy = { path = "../taffy" }
# [patch."https://github.com/linebender/parley"]
# parley = { path = "../parley/parley" }
# fontique = { path = "../parley/fontique" }