mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 13:13:49 +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>
14 lines
233 B
TOML
14 lines
233 B
TOML
[package]
|
|
name = "bevy_utils_proc_macros"
|
|
version = "0.9.0"
|
|
description = "Bevy Utils Proc Macros"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
syn = "1.0"
|
|
quote = "1.0"
|
|
proc-macro2 = "1.0"
|