-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
51 lines (48 loc) · 991 Bytes
/
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
[package]
name = "bevy-in-web-worker"
description = "bevy + web worker"
authors = ["Jinlei Li"]
version = "0.2.0"
edition = "2021"
rust-version = "1.78"
[lib]
crate-type = ["cdylib"]
[dependencies]
raw-window-handle = "0.6"
wgpu = "23"
bevy = { version = "0.15", features = [
"bevy_pbr",
"bevy_gizmos",
"tonemapping_luts",
"webgpu",
"bevy_window",
], default-features = false }
uuid = { version = "1.7.0", features = ["v4"] }
rand = "0.8"
# Web only
wasm-bindgen = "0.2.97"
wasm-bindgen-futures = "0.4.47"
console_error_panic_hook = "0.1.7"
console_log = "1"
web-sys = { version = "0.3.74", features = [
"Window",
"Document",
"Element",
"HtmlCanvasElement",
"OffscreenCanvas",
"MouseEvent",
"Worker",
"DedicatedWorkerGlobalScope",
"Event",
"MessageEvent",
"Blob",
"BlobPropertyBag",
"Url",
] }
js-sys = "0.3.74"
[profile.wasm-release]
inherits = "release"
opt-level = "z"
lto = "fat"
# lto = true
codegen-units = 1