-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Bluefinger/full-type-path
feat: bevy_prng crate & stable TypePath wrappers
- Loading branch information
Showing
15 changed files
with
985 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bevy_rand" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
edition = "2021" | ||
authors = ["Gonçalo Rica Pais da Silva <[email protected]>"] | ||
description = "A plugin to integrate rand for ECS optimised RNG for the Bevy game engine." | ||
|
@@ -15,20 +15,23 @@ rust-version = "1.70.0" | |
[features] | ||
default = ["serialize", "thread_local_entropy"] | ||
thread_local_entropy = ["dep:rand_chacha"] | ||
serialize = ["dep:serde", "rand_core/serde1", "rand_chacha?/serde1"] | ||
serialize = ["dep:serde", "rand_core/serde1"] | ||
|
||
[workspace] | ||
members = ["bevy_prng"] | ||
|
||
[dependencies] | ||
# bevy | ||
bevy = { version = "0.11.1", default-features = false } | ||
bevy = { version = "0.11", default-features = false } | ||
|
||
# others | ||
serde = { version = "1.0", features = ["derive"], optional = true } | ||
rand_core = { version = "0.6", features = ["std"] } | ||
rand_chacha = { version = "0.3", optional = true } | ||
|
||
[dev-dependencies] | ||
bevy_prng = { path = "bevy_prng", version = "0.1", features = ["rand_chacha"] } | ||
rand = "0.8" | ||
rand_chacha = "0.3" | ||
ron = { version = "0.8.0", features = ["integer128"] } | ||
|
||
[target.'cfg(target_arch = "wasm32")'.dev-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[package] | ||
name = "bevy_prng" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Gonçalo Rica Pais da Silva <[email protected]>"] | ||
description = "A crate providing newtyped RNGs for integration into Bevy." | ||
repository = "https://github.com/Bluefinger/bevy_rand" | ||
license = "MIT OR Apache-2.0" | ||
keywords = ["game", "bevy", "rand", "rng"] | ||
categories = ["game-engines", "algorithms"] | ||
exclude = ["/.*"] | ||
resolver = "2" | ||
rust-version = "1.70.0" | ||
|
||
[features] | ||
default = ["serialize"] | ||
serialize = [ | ||
"dep:serde", | ||
"rand_core/serde1", | ||
"rand_chacha?/serde1", | ||
"rand_pcg?/serde1", | ||
"rand_xoshiro?/serde1", | ||
"wyrand?/serde1", | ||
] | ||
|
||
[dependencies] | ||
bevy = { version = "0.11", default-features = false } | ||
rand_core = { version = "0.6", features = ["std"] } | ||
serde = { version = "1.0", features = ["derive"], optional = true } | ||
rand_chacha = { version = "0.3", optional = true } | ||
wyrand = { version = "0.1", optional = true } | ||
rand_pcg = { version = "0.3", optional = true } | ||
rand_xoshiro = { version = "0.6", optional = true } |
Oops, something went wrong.