Skip to content

Commit b129764

Browse files
authored
deny(missing_docs) for bevy_asset_macros (#19719)
# Objective More boilerplate docs, towards #3492. Another place where #19537 might be worth doing as a follow up - I've added a comment on that issue.
1 parent d0550f5 commit b129764

File tree

1 file changed

+4
-1
lines changed
  • crates/bevy_asset/macros/src

1 file changed

+4
-1
lines changed

crates/bevy_asset/macros/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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 asset traits.
4+
45
use bevy_macro_utils::BevyManifest;
56
use proc_macro::{Span, TokenStream};
67
use quote::{format_ident, quote};
@@ -12,6 +13,7 @@ pub(crate) fn bevy_asset_path() -> Path {
1213

1314
const DEPENDENCY_ATTRIBUTE: &str = "dependency";
1415

16+
/// Implement the `Asset` trait.
1517
#[proc_macro_derive(Asset, attributes(dependency))]
1618
pub fn derive_asset(input: TokenStream) -> TokenStream {
1719
let ast = parse_macro_input!(input as DeriveInput);
@@ -30,6 +32,7 @@ pub fn derive_asset(input: TokenStream) -> TokenStream {
3032
})
3133
}
3234

35+
/// Implement the `VisitAssetDependencies` trait.
3336
#[proc_macro_derive(VisitAssetDependencies, attributes(dependency))]
3437
pub fn derive_asset_dependency_visitor(input: TokenStream) -> TokenStream {
3538
let ast = parse_macro_input!(input as DeriveInput);

0 commit comments

Comments
 (0)