diff --git a/common/Cargo.toml b/common/Cargo.toml index 10fdb3830a..607103a468 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -75,7 +75,7 @@ slotmap = { version = "1.0", features = ["serde"] } indexmap = { version = "1.9.3", features = ["rayon"] } # ECS -specs = { workspace = true, features = ["serde", "storage-event-control"] } +specs = { workspace = true, features = ["serde", "storage-event-control", "shred-derive"] } [dev-dependencies] #bench diff --git a/common/src/event.rs b/common/src/event.rs index 294efc6ba1..ac897d885f 100644 --- a/common/src/event.rs +++ b/common/src/event.rs @@ -538,14 +538,17 @@ pub fn register_event_busses(ecs: &mut World) { /// /// # Example: /// ``` -/// struct Foo; -/// struct Bar; -/// struct Baz; -/// event_emitters!( -/// pub struct ReadEvents[EventEmitters] { -/// foo: Foo, bar: Bar, baz: Baz, -/// } -/// ); +/// mod some_mod_is_necessary_for_the_test { +/// use veloren_common::event_emitters; +/// pub struct Foo; +/// pub struct Bar; +/// pub struct Baz; +/// event_emitters!( +/// pub struct ReadEvents[EventEmitters] { +/// foo: Foo, bar: Bar, baz: Baz, +/// } +/// ); +/// } /// ``` #[macro_export] macro_rules! event_emitters {