-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCargo.toml
56 lines (50 loc) · 1.51 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
[package]
name = "app"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"
name = "app_core"
[dependencies]
bytemuck = { version = "1.21.0", features = ["derive"] }
egui = "0.30.0"
egui-wgpu = { version = "0.30.0", features = ["winit"] }
futures = "0.3.31"
log = "0.4.22"
nalgebra-glm = { version = "0.19.0", features = [
"convert-bytemuck",
"serde-serialize",
] }
web-time = "1.1.0"
wgpu = { version = "23.0.1", default-features = false }
winit = "0.30.7"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.11.6"
egui-winit = "0.30.0"
pollster = "0.4.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.7"
console_log = "1.0.0"
egui-winit = { version = "0.30.0", default-features = false }
wasm-bindgen = "0.2.99"
wasm-bindgen-futures = "0.4.49"
[features]
default = ["wgpu/default"]
webgl = ["wgpu/webgl"]
webgpu = ["wgpu/webgpu"]
# For very small final binary size,
# uncomment the following release profile and build with it
#
# [profile.release]
# codegen-units = 1 # Reduce parallel code generation units
# strip = true # Automatically strip symbols from the binary.
# opt-level = "z" # Optimize for size
# lto = true # Link time optimization
# panic = "abort" # On panic, abort immediately rather than unwinding. Don't use this if you want backtraces.
#
# Then compress the final executable further with:
# upx --best --lzma ./target/release/app
#
# Or on windows,
# upx --best --lzma ./target/release/app.exe