-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (47 loc) · 1.63 KB
/
Cargo.toml
File metadata and controls
55 lines (47 loc) · 1.63 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
[package]
name = "particle-simulation-3d"
version = "0.1.0"
authors = ["Lucas de Linhares <lucasdelinhares@gmail.com>"]
edition = "2024"
[workspace]
members = ["release"]
[dependencies]
egui = { version = "0.33.3", default-features = false, features = ["rayon"] }
eframe = { version = "0.33.3", default-features = false, features = [
"wgpu",
"wayland",
"x11",
] }
wgpu = "27"
egui-wgpu = { version = "0.33.3", default-features = false }
log = { version = "0.4", optional = true }
glam = { version = "0.30", features = ["fast-math"] }
bytemuck = "1.24"
rand = { version = "0.9", default-features = false, features = ["small_rng"] }
rayon = "1.11"
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = { version = "0.11", optional = true }
mimalloc = { version = "0.1", features = ["v3"] }
# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wgpu = { version = "27", features = ["webgl"] }
wasm-bindgen-futures = "0.4"
wasm-bindgen-rayon = { version = "1.3", features = [
"no-bundler",
], optional = true }
web-time = "1.1" # TODO: See if I can get rid of this
web-sys = "0.3" # to access the DOM (to hide the loading text)
[features]
default = []
logs = ["dep:env_logger", "dep:log"]
# TODO: Performance gains are not certain yet
wasm-rayon = ["wasm-bindgen-rayon"]
[profile.release]
codegen-units = 1 # Allows LLVM to perform better optimization.
lto = true # Enables link-time-optimizations.
panic = "abort" # Higher performance by disabling panic handlers.
strip = true # Ensures debug symbols are removed.
# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2