mirror of
https://github.com/bevyengine/bevy
synced 2024-11-30 08:30:24 +00:00
8853bef6df
# Objective - Fixes #5432 - Fixes #6680 ## Solution - move code responsible for generating the `impl TypeUuid` from `type_uuid_derive` into a new function, `gen_impl_type_uuid`. - this allows the new proc macro, `impl_type_uuid`, to call the code for generation. - added struct `TypeUuidDef` and implemented `syn::Parse` to allow parsing of the input for the new macro. - finally, used the new macro `impl_type_uuid` to implement `TypeUuid` for the standard library (in `crates/bevy_reflect/src/type_uuid_impl.rs`). - fixes #6680 by doing a wrapping add of the param's index to its `TYPE_UUID` Co-authored-by: dis-da-moe <84386186+dis-da-moe@users.noreply.github.com>
25 lines
765 B
TOML
25 lines
765 B
TOML
[package]
|
|
name = "bevy_utils"
|
|
version = "0.9.0"
|
|
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]
|
|
detailed_trace = []
|
|
|
|
[dependencies]
|
|
ahash = "0.7.0"
|
|
tracing = { version = "0.1", default-features = false, features = ["std"] }
|
|
instant = { version = "0.1", features = ["wasm-bindgen"] }
|
|
uuid = { version = "1.1", features = ["v4", "serde"] }
|
|
hashbrown = { version = "0.12", features = ["serde"] }
|
|
bevy_utils_proc_macros = {version = "0.9.0", path = "macros"}
|
|
petgraph = "0.6"
|
|
thiserror = "1.0"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
getrandom = {version = "0.2.0", features = ["js"]}
|