-
Notifications
You must be signed in to change notification settings - Fork 27
/
Cargo.toml
executable file
·66 lines (60 loc) · 1.52 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
[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.25"
default-features = false
[workspace.dependencies]
app-surface = "1.3.2"
# app-surface = { path = "../idroid/wgpu-in-app/app-surface", default-features = false }
bytemuck = { version = "1.19" }
cfg-if = "1"
glam = "0.29"
env_logger = "0.11"
flume = "0.11"
instant = "0.1.13"
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.7"
reqwest = { version = "0.11" }
web-sys = "0.3.76"
wasm-bindgen = "0.2.99"
js-sys = "0.3.76"
wasm-bindgen-futures = "0.4.49"
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