Skip to content

Commit

Permalink
fix: Default to wasm-bindgen for all wasm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefinger committed Feb 24, 2024
1 parent 75942ba commit 989f447
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_turborand"
version = "0.8.1"
version = "0.8.2"
edition = "2021"
authors = ["Gonçalo Rica Pais da Silva <bluefinger@gmail.com>"]
description = "A plugin to enable ECS optimised random number generation for the Bevy game engine."
Expand All @@ -11,28 +11,27 @@ categories = ["game-development", "game-engines"]
exclude = ["/.*"]
resolver = "2"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = { version = "0.13", default-features = false }
serde = { version = "1.0", features = ["derive"], optional = true }
turborand = { version = "0.10", default-features = false, features=["std", "fmt"] }

[dev-dependencies]
ron = "0.8"

[features]
default = ["wyrand", "serialize"]
wyrand = ["turborand/wyrand"]
chacha = ["turborand/chacha"]
serialize = ["turborand/serialize", "dep:serde"]
rand = ["turborand/rand"]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3"
[dependencies]
bevy = { version = "0.13", default-features = false }
serde = { version = "1.0", features = ["derive"], optional = true }
turborand = { version = "0.10", default-features = false, features=["std", "fmt"] }

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.instant]
[target.'cfg(target_arch = "wasm32")'.dependencies.instant]
version = "0.1"
features = ["wasm-bindgen"]

[dev-dependencies]
ron = "0.8"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3"

[package.metadata.docs.rs]
all-features = true

0 comments on commit 989f447

Please sign in to comment.