Skip to content

Commit 476d79d

Browse files
authored
deny(missing_docs) for bevy_state (#19492)
# Objective Deny missing docs in bevy_state, towards #3492.
1 parent bd4c960 commit 476d79d

File tree

1 file changed

+6
-1
lines changed
  • crates/bevy_state/macros/src

1 file changed

+6
-1
lines changed

crates/bevy_state/macros/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
21
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
32

3+
//! Macros for deriving `States` and `SubStates` traits.
4+
45
extern crate proc_macro;
56

67
mod states;
78

89
use bevy_macro_utils::BevyManifest;
910
use proc_macro::TokenStream;
1011

12+
/// Implements the `States` trait for a type - see the trait
13+
/// docs for an example usage.
1114
#[proc_macro_derive(States, attributes(states))]
1215
pub fn derive_states(input: TokenStream) -> TokenStream {
1316
states::derive_states(input)
1417
}
1518

19+
/// Implements the `SubStates` trait for a type - see the trait
20+
/// docs for an example usage.
1621
#[proc_macro_derive(SubStates, attributes(states, source))]
1722
pub fn derive_substates(input: TokenStream) -> TokenStream {
1823
states::derive_substates(input)

0 commit comments

Comments
 (0)