-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
59 lines (52 loc) · 1.33 KB
/
Cargo.toml
File metadata and controls
59 lines (52 loc) · 1.33 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
59
[package]
name = "galaxy-sim"
version = "0.1.0"
edition = "2021"
authors = ["Robert Gilks <robert@example.com>"]
description = "A GPU-accelerated black hole accretion disk simulation in Rust with WebGPU"
license = "MIT"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[lib]
crate-type = ["cdylib"]
[dependencies]
wgpu = { version = "24.0", features = ["webgl"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", features = [
"Window",
"Document",
"HtmlCanvasElement",
"Element",
"HtmlElement",
"Event",
"MouseEvent",
"WheelEvent",
"KeyboardEvent",
"TouchEvent",
"TouchList",
"Touch",
"console",
"CssStyleDeclaration",
] }
js-sys = "0.3"
console_error_panic_hook = { version = "0.1", optional = true }
log = "0.4"
cgmath = "0.18"
bytemuck = { version = "1.0", features = ["derive"] }
rand = "0.8"
getrandom = { version = "0.2", features = ["js"] }
raw-window-handle = "0.6"
[features]
default = []
console_error_panic_hook = ["dep:console_error_panic_hook"]
[target.'cfg(target_arch = "wasm32")'.dependencies]
console_log = "1.0"
raw-window-handle = { version = "0.6", features = ["wasm-bindgen-0-2"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
pollster = "0.3"
env_logger = "0.10"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1