-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCargo.toml
179 lines (156 loc) · 4.45 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
173
174
175
176
177
178
179
[workspace]
members = [
"plugins/bundle",
"plugins/config",
"plugins/core",
"plugins/macro",
"plugins/task",
"plugins/ui/cli",
"plugins/ui/desktop",
"plugins/web3/device",
"examples/todomvc",
]
[workspace.package]
version = "0.2.1"
authors = ["Junichi Sugiura"]
edition = "2021"
description = "Write cross-platform application with React-like declarative UI framework and scalable ECS architecture all in Rust."
license = "MIT OR Apache-2.0"
repository = "https://github.com/diptools/dip/"
homepage = "https://github.com/diptools/dip/"
documentation = "https://docs.rs/dip/latest/dip/"
keywords = ["declarative-ui", "ecs", "bevy", "dioxus", "cross-platform"]
[workspace.dependencies]
anyhow = "1.0"
bevy = { version = "0.8", default-features = false }
bevy_ecs = "0.8"
bytes = "1"
cmd_lib = "1"
config = "0.13"
convert_case = "0.5"
dioxus = { version = "0.2", features = ["fermi"] }
dip = { path = ".", features = ["desktop"] }
dip_bundle = { version = "0.2", path = "./plugins/bundle" }
dip_config = { version = "0.2", path = "./plugins/config" }
dip_core = { version = "0.2", path = "./plugins/core" }
dip_device = { version = "0.2", path = "./plugins/web3/device" }
dip_macro = { version = "0.2", path = "./plugins/macro" }
dip_task = { version = "0.2", path = "./plugins/task" }
dirs = "4.0"
flate2 = "1.0"
hex = "0.4"
pathdiff = "0.2"
reqwest = { version = "0.11", features = ["json", "blocking"] }
tar = "0.4"
tokio = { version = "1.18", features = ["rt-multi-thread", "sync", "macros", "fs"], default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_repr = "0.1"
sha2 = "0.10"
tempfile = "3"
walkdir = "2"
[package]
name = "dip"
version.workspace = true
edition.workspace = true
description.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
keywords.workspace = true
[[bin]]
name = "dip"
path = "src/main.rs"
[dependencies]
anyhow.workspace = true
bevy.workspace = true
clap = { version = "3.2", features = ["derive"], optional = true }
config.workspace = true
dioxus.workspace = true
dip_bundle.workspace = true
dip_cli = { version = "0.2", path = "./plugins/ui/cli", optional = true }
dip_core.workspace = true
dip_desktop = { version = "0.2", path = "./plugins/ui/desktop", optional = true }
dip_device.workspace = true
dip_macro.workspace = true
dirs.workspace = true
reqwest.workspace = true
serde.workspace = true
tokio.workspace = true
[dev-dependencies]
leafwing-input-manager = { version = "0.5", default-features = false }
serde.workspace = true
[features]
default = ["cli"]
desktop = ["dip_desktop"]
cli = ["dip_cli", "clap"]
# CLI
[[example]]
name = "cli"
path = "examples/cli/cli.rs"
required-features = ["cli"]
[[example]]
name = "cli_async"
path = "examples/cli/async.rs"
required-features = ["cli"]
[[example]]
name = "cli_config"
path = "examples/cli/config/main.rs"
required-features = ["cli"]
# Desktop
[[example]]
name = "desktop_async"
path = "examples/desktop/async.rs"
required-features = ["desktop"]
[[example]]
name = "counter"
path = "examples/desktop/counter.rs"
required-features = ["desktop"]
[[example]]
name = "minimum"
path = "examples/desktop/minimum.rs"
required-features = ["desktop"]
[[example]]
name = "root_props"
path = "examples/desktop/root_props.rs"
required-features = ["desktop"]
# Desktop: keyboard
[[example]]
name = "keyboard"
path = "examples/desktop/keyboard/keyboard_event.rs"
required-features = ["desktop"]
[[example]]
name = "key_bindings"
path = "examples/desktop/keyboard/bindings.rs"
required-features = ["desktop"]
# Desktop: state management
[[example]]
name = "local_state"
path = "examples/desktop/state_management/local_state.rs"
required-features = ["desktop"]
[[example]]
name = "global_state"
path = "examples/desktop/state_management/global_state.rs"
required-features = ["desktop"]
[[example]]
name = "ecs"
path = "examples/desktop/state_management/ecs.rs"
required-features = ["desktop"]
# Desktop: window management
[[example]]
name = "window_settings"
path = "examples/desktop/window/settings.rs"
required-features = ["desktop"]
[[example]]
name = "render_mode"
path = "examples/desktop/window/render_mode.rs"
required-features = ["desktop"]
[[example]]
name = "multiple_windows"
path = "examples/desktop/window/multiple_windows.rs"
required-features = ["desktop"]
[[example]]
name = "scale_factor_override"
path = "examples/desktop/window/scale_factor_override.rs"
required-features = ["desktop"]