Cargo Features

[dependencies]
bevy_rand = { version = "0.11.0", default-features = false, features = ["std", "bevy_reflect", "compat", "experimental", "thread_local_entropy", "serialize", "rand_chacha", "rand_pcg", "rand_xoshiro", "wyrand", "wasm_js"] }
default = bevy_reflect, compat, serialize, std, thread_local_entropy

These default features are set whenever bevy_rand is added without default-features = false somewhere in the dependency tree.

std default thread_local_entropy

Enables std of bevy_prng and getrandom

getrandom:

others

bevy_reflect default

Enables bevy_reflect and bevy_reflect of bevy_app, bevy_ecs, and bevy_prng

bevy_app:

Functionality

Adds runtime reflection support using bevy_reflect.

compat default

Enables rand_core ^0.6.4, compat of bevy_prng

experimental
thread_local_entropy default = std

Enables rand_chacha

Affects traits::SeedSource.try_from_local_entropy, traits::SeedSource.from_local_entropy

serialize default

Enables serde, serialize of bevy_prng and serde of rand_core

rand_core:

enables serde for BlockRng wrapper

rand_chacha

Enables rand_chacha of bevy_prng

rand_pcg

Enables rand_pcg of bevy_prng

rand_xoshiro

Enables rand_xoshiro of bevy_prng

wyrand

Enables wyrand of bevy_prng

wasm_js

Enables wasm_js of getrandom