Skip to content

Commit

Permalink
Merge pull request #7 from sdasda7777/sdasda7777_pages7
Browse files Browse the repository at this point in the history
Added WASM target to Cargo.toml
  • Loading branch information
sdasda7777 authored Nov 24, 2023
2 parents 1ccb0d1 + 48e466b commit 236ea64
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,26 @@ name = "minesweeper6d"
version = "0.1.2"

[dependencies]
getrandom = { version = "0.2", features = ["js"] }
eframe = "0.23"
hhmmss = "0.1"
itertools = "0.11"
rand = "0.8"
rand_chacha = "0.3"
toml = "0.8"

# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
env_logger = "0.10"

# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"

[profile.release]
opt-level = 2 # fast and small wasm

# Optimize all dependencies even in debug builds:
[profile.dev.package."*"]
opt-level = 2

[patch.crates-io]

0 comments on commit 236ea64

Please sign in to comment.