Skip to content

Commit

Permalink
Added WASM target to Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
sdasda7777 committed Nov 24, 2023
1 parent 1ccb0d1 commit 48e466b
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 48e466b

Please sign in to comment.