-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathCargo.toml
More file actions
127 lines (107 loc) · 4.75 KB
/
Copy pathCargo.toml
File metadata and controls
127 lines (107 loc) · 4.75 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
[package]
name = "dioxus-native"
version = { workspace = true }
authors = ["Jonathan Kelley", "Nico Burns"]
edition = "2024"
description = "Native renderer for Dioxus based on blitz"
license = "MIT OR Apache-2.0"
repository = "https://github.com/DioxusLabs/dioxus/"
homepage = "https://dioxuslabs.com/learn/0.7/getting_started"
keywords = ["dom", "ui", "gui", "react"]
[features]
default = ["accessibility", "hot-reload", "net", "html", "svg", "system-fonts", "clipboard", "file_dialog", "vello-hybrid", "incremental", "woff", "apple-font-embolden"]
prelude = ["dep:dioxus-core-macro", "dep:dioxus-hooks", "dep:dioxus-signals", "dep:dioxus-stores", "dep:manganis"]
# DOM features
svg = ["blitz-dom/svg", "blitz-paint/svg"]
floats = ["blitz-dom/floats"]
incremental = ["blitz-dom/incremental"]
autofocus = ["blitz-dom/autofocus"]
system-fonts = ["blitz-dom/system_fonts"]
# WOFF/WOFF2 decoder. Default-on so wasm callers (which can't use system fonts)
# can bundle compressed fonts without extra setup.
woff = ["blitz-dom/woff"]
# Shell Features
clipboard = ["blitz-shell/clipboard"]
file_dialog = ["file-dialog"] # Backwards compat. Remove in next breaking version
file-dialog = ["blitz-shell/file_dialog"]
accessibility = ["blitz-shell/accessibility", "blitz-dom/accessibility"]
data-uri = ["blitz-shell/data-uri"]
# Renderer features
vello = ["dep:anyrender_vello", "dep:wgpu_context"]
vello-hybrid = ["dep:anyrender_vello_hybrid", "dep:wgpu_context"]
skia = ["dep:anyrender_skia"]
vello-cpu = ["vello-cpu-pixels"]
vello-cpu-pixels = ["vello-cpu-base", "anyrender_vello_cpu/pixels_window_renderer"]
vello-cpu-softbuffer = ["vello-cpu-base", "anyrender_vello_cpu/softbuffer_window_renderer"]
vello-cpu-base = ["dep:anyrender_vello_cpu"]
font-embolden = ["blitz-paint/font-embolden"]
apple-font-embolden = ["blitz-paint/apple-font-embolden"]
# Other features
winit-event-handler = ["dep:slab"]
# No-op on wasm32 (blitz_net::Provider needs tokio's threaded runtime); launch_cfg
# falls back to the in-process DioxusNativeNetProvider there.
net = ["dep:tokio", "dep:blitz-net"]
html = ["dep:blitz-html"]
# Dev
hot-reload = ["dep:dioxus-devtools"]
# Debug/Logging
log-times = ["log-phase-times", "log-frame-times"]
log-phase-times = ["blitz-dom/log_phase_times"]
log-frame-times = [
"anyrender_vello_cpu?/log_frame_times",
"anyrender_vello?/log_frame_times",
"anyrender_vello_hybrid?/log_frame_times",
"anyrender_skia?/log_frame_times",
]
tracing = ["dep:tracing", "dioxus-native-dom/tracing", "blitz-shell/tracing", "blitz-dom/tracing", "blitz-html/tracing", "blitz-net/tracing"]
[dependencies]
# Blitz dependencies
blitz-dom = { workspace = true, features = ["custom-widget"] }
blitz-html = { workspace = true, optional = true }
blitz-net = { workspace = true, optional = true }
blitz-paint = { workspace = true, optional = true, features = ["custom-widget"] }
blitz-traits = { workspace = true }
blitz-shell = { workspace = true }
# AnyRender dependencies
anyrender = { workspace = true }
anyrender_vello = { workspace = true, optional = true}
anyrender_vello_hybrid = { workspace = true, optional = true}
anyrender_vello_cpu = { workspace = true, optional = true}
anyrender_skia = { workspace = true, optional = true}
wgpu_context = { workspace = true, optional = true}
# DioxusLabs dependencies
dioxus-core = { workspace = true }
dioxus-html = { workspace = true }
dioxus-native-dom = { workspace = true }
dioxus-asset-resolver = { workspace = true, features = ["native"] }
dioxus-history = { workspace = true }
dioxus-document = { workspace = true }
dioxus-cli-config = { workspace = true }
# Dioxus hot reload
dioxus-devtools = { workspace = true, optional = true }
# Dioxus prelude
dioxus-hooks = { workspace = true, optional = true }
dioxus-signals = { workspace = true, optional = true }
dioxus-stores = { workspace = true, optional = true }
dioxus-core-macro = { workspace = true, optional = true }
manganis = { workspace = true, features = ["dioxus"], optional = true }
# Windowing & Input
winit = { workspace = true }
keyboard-types = { workspace = true }
# IO & Networking
tokio = { workspace = true, features = ["rt"], optional = true }
webbrowser = { workspace = true }
# Other dependencies
tracing = { workspace = true, optional = true }
rustc-hash = { workspace = true }
futures-util = { workspace = true }
cfg-if = "1.0.4"
slab = { workspace = true, optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true, features = ["rt-multi-thread"], optional = true }
[target.'cfg(target_os = "android")'.dependencies]
android-activity = { version = "0.6", default-features = false }
[target.'cfg(all(target_os = "ios", target_abi = "sim"))'.dependencies]
anyrender_vello_cpu = { workspace = true, features = ["pixels_window_renderer"]}
[package.metadata.docs.rs]
all-features = true