-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
58 lines (49 loc) · 1.4 KB
/
Cargo.toml
File metadata and controls
58 lines (49 loc) · 1.4 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
56
57
58
[package]
name = "evo"
version = "0.1.0"
edition = "2021"
description = "A beautiful and performant evolution simulation with GPU-accelerated graphics"
license = "MIT"
repository = "https://github.com/rgilks/evo"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[lib]
crate-type = ["cdylib"]
[dependencies]
# Core simulation
hecs = "0.9"
rayon = "1.8"
rand = { version = "0.8", features = ["getrandom"] }
getrandom = { version = "0.2", features = ["js"] }
indexmap = "=2.2.6" # Pin version to avoid E0658 with our toolchain
dashmap = "5.5"
# Graphics - match galacto version
wgpu = { version = "24.0", features = ["webgl"] }
bytemuck = { version = "1.14", features = ["derive"] }
# Utilities
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# WebAssembly support
wasm-bindgen = "0.2"
wasm-bindgen-rayon = "1.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = [
"HtmlCanvasElement",
"Window",
"Document",
"Element",
"console",
] }
serde-wasm-bindgen = "0.6"
console_error_panic_hook = "0.1"
raw-window-handle = { version = "0.6", features = ["wasm-bindgen-0-2"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
parking_lot = { version = "0.12", features = ["nightly"] }
instant = { version = "0.1", features = ["wasm-bindgen"] }
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
[dev-dependencies]
tempfile = "3.8"