Skip to content

Commit 664000f

Browse files
authored
Improve derive(Event) and simplify macro code (#18083)
# Objective simplify some code and improve Event macro Closes #14336, # Showcase you can now write derive Events like so ```rust #[derive(event)] #[event(auto_propagate, traversal = MyType)] struct MyEvent; ```
1 parent 6cd98b3 commit 664000f

File tree

6 files changed

+171
-188
lines changed

6 files changed

+171
-188
lines changed

crates/bevy_ecs/macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ proc-macro = true
1111
[dependencies]
1212
bevy_macro_utils = { path = "../../bevy_macro_utils", version = "0.16.0-dev" }
1313

14-
syn = { version = "2.0", features = ["full"] }
14+
syn = { version = "2.0.99", features = ["full", "extra-traits"] }
1515
quote = "1.0"
1616
proc-macro2 = "1.0"
1717
[lints]

0 commit comments

Comments
 (0)