-
Notifications
You must be signed in to change notification settings - Fork 24
/
Cargo.toml
69 lines (63 loc) · 1.53 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
[workspace]
resolver = "2"
members = [
"code/beginner/*",
"code/intermediate/*",
"code/integration-and-debugging/*",
"code/utils",
# showcase
"code/showcase/*",
"run-wasm",
]
exclude = [
"code/showcase/imgui-demo",
# "code/showcase/pong",
]
[workspace.package]
edition = "2021"
rust-version = "1.79"
[workspace.dependencies.image]
version = "0.24"
default-features = false
[workspace.dependencies]
app-surface = "1.3.0"
# app-surface = { path = "../idroid/wgpu-in-app/app-surface" }
bytemuck = { version = "1.19", features = ["derive"] }
cfg-if = "1"
glam = "0.29"
env_logger = "0.11"
flume = "0.11"
instant = "0.1"
log = "0.4"
pollster = "0.3"
parking_lot = "0.12"
rayon = "1.8"
tobj = "3.2"
winit = "0.30.5"
wgpu = { version = "23" }
utils = { path = "code/utils" }
# wasm32 dependencies
console_error_panic_hook = "0.1.7"
console_log = "1.0"
fern = "0.6"
reqwest = { version = "0.11" }
web-sys = "0.3.72"
wasm-bindgen = "0.2.95"
js-sys = "0.3.72"
wasm-bindgen-futures = "0.4.45"
web-time = "1"
# build-dependencies
anyhow = "1.0"
fs_extra = "1.3"
glob = "0.3"
[profile.wasm-release]
inherits = "release"
lto = "fat"
# lto = true # VERY slightly smaller wasm
# opt-level = 's' # 10-30% smaller wasm compared to `opt-level = 3`
# opt-level = 1 # very slow and big wasm. Don't do this.
opt-level = 2 # fast and small wasm, basically same as `opt-level = 's'`
# opt-level = 3 # unecessarily large wasm for no performance gain
# debug = true # include debug symbols, useful when profiling wasm
panic = "abort"
codegen-units = 1