-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
43 lines (37 loc) · 1.08 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
[package]
name = "minesweeper"
version = "0.1.0"
authors = ["Tom Pridham <[email protected]>"]
edition = "2021"
description = "a minesweeper clone built with bevy that can compile to wasm"
repository = "https://github.com/TomPridham/wasmsweeper"
license = "MIT"
[lib]
crate-type = ["cdylib", "rlib"]
[profile.release]
lto = "thin"
opt-level = 'z'
# Dependencies for all targets go here.
[dependencies]
bevy_ecs = "0.6.1"
console_error_panic_hook = "0.1.7"
getrandom = { version = "0.2", features = ["wasm-bindgen"] }
rand = { version = "0.8.4", default-features = false, features = ["small_rng"] }
wasm-bindgen = "0.2"
web-sys = { version = "0.3.46", features = ["console"] }
wee_alloc = "0.4"
# Dependencies for native only.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
bevy = { version = "0.6.1", default-features = false, features = [
"bevy_winit",
"render",
"x11",
"dynamic"
] }
# Dependencies for WASM only.
[target.'cfg(target_arch = "wasm32")'.dependencies]
bevy = { version = "0.6.1", default-features = false, features = [
"png",
"bevy_winit",
"render"
] }