deny(missing_docs) for bevy_state (#19492)

# Objective

Deny missing docs in bevy_state, towards
https://github.com/bevyengine/bevy/issues/3492.
This commit is contained in:
theotherphil 2025-06-04 21:43:47 +01:00 committed by GitHub
parent bd4c960f26
commit 476d79d821
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,7 @@
#![expect(missing_docs, reason = "Not all docs are written yet, see #3492.")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
//! Macros for deriving `States` and `SubStates` traits.
extern crate proc_macro;
mod states;
@ -8,11 +9,15 @@ mod states;
use bevy_macro_utils::BevyManifest;
use proc_macro::TokenStream;
/// Implements the `States` trait for a type - see the trait
/// docs for an example usage.
#[proc_macro_derive(States, attributes(states))]
pub fn derive_states(input: TokenStream) -> TokenStream {
states::derive_states(input)
}
/// Implements the `SubStates` trait for a type - see the trait
/// docs for an example usage.
#[proc_macro_derive(SubStates, attributes(states, source))]
pub fn derive_substates(input: TokenStream) -> TokenStream {
states::derive_substates(input)