From ab461219347fda001557a4d1b17deb2b994d7407 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 18 Sep 2024 18:24:23 +0100 Subject: [PATCH] Mark the generated entry as doc(hidden) --- agb-macros/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agb-macros/src/lib.rs b/agb-macros/src/lib.rs index f2396714..2c898f92 100644 --- a/agb-macros/src/lib.rs +++ b/agb-macros/src/lib.rs @@ -103,6 +103,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream { quote!( #[cfg(not(test))] #[export_name = "main"] + #[doc(hidden)] #(#attrs)* pub extern "C" fn #fn_name() -> ! { let #mutable #argument_name = unsafe { #argument_type ::new_in_entry() }; @@ -112,6 +113,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream { #[cfg(test)] #[export_name = "main"] + #[doc(hidden)] #(#attrs)* pub extern "C" fn #fn_name() -> ! { let mut #argument_name = unsafe { #argument_type ::new_in_entry() };