[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"]
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 }
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