mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 06:00:20 +00:00
53adcd7667
# Objective - Contributes to #15460 ## Solution - Made `web-time` a `wasm32`-only dependency. - Moved time-related exports to its own module for clarity. - Feature-gated allocator requirements for `hashbrown` behind `alloc`. - Enabled compile-time RNG for `ahash` (runtime RNG will preferentially used in `std` environments) - Made `thread_local` optional by feature-gating the `Parallel` type. ## Testing - Ran CI locally. - `cargo build -p bevy_utils --target "x86_64-unknown-none" --no-default-features`
45 lines
1.1 KiB
TOML
45 lines
1.1 KiB
TOML
[package]
|
|
name = "bevy_utils"
|
|
version = "0.15.0-dev"
|
|
edition = "2021"
|
|
description = "A collection of utils for Bevy Engine"
|
|
homepage = "https://bevyengine.org"
|
|
repository = "https://github.com/bevyengine/bevy"
|
|
license = "MIT OR Apache-2.0"
|
|
keywords = ["bevy"]
|
|
|
|
[features]
|
|
default = ["std", "serde"]
|
|
std = [
|
|
"alloc",
|
|
"tracing/std",
|
|
"ahash/std",
|
|
"dep:thread_local",
|
|
"ahash/runtime-rng",
|
|
]
|
|
alloc = ["hashbrown/default"]
|
|
detailed_trace = []
|
|
serde = ["hashbrown/serde"]
|
|
|
|
[dependencies]
|
|
ahash = { version = "0.8.7", default-features = false, features = [
|
|
"compile-time-rng",
|
|
] }
|
|
tracing = { version = "0.1", default-features = false }
|
|
hashbrown = { version = "0.14.2", default-features = false }
|
|
bevy_utils_proc_macros = { version = "0.15.0-dev", path = "macros" }
|
|
thread_local = { version = "1.0", optional = true }
|
|
|
|
[dev-dependencies]
|
|
static_assertions = "1.1.0"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
getrandom = { version = "0.2.0", features = ["js"] }
|
|
web-time = { version = "1.1" }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
|
|
all-features = true
|