From 11a3258834587a267f63588366ecc00d6b82156c Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 2 May 2026 01:02:23 +0800 Subject: Add architecture overview and doc comments to macro crate --- mingling_macros/src/help.rs | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'mingling_macros/src/help.rs') diff --git a/mingling_macros/src/help.rs b/mingling_macros/src/help.rs index 7943270..315483d 100644 --- a/mingling_macros/src/help.rs +++ b/mingling_macros/src/help.rs @@ -1,22 +1,3 @@ -//! Help Attribute Macro -//! -//! This module provides the `#[help]` attribute macro for automatically -//! generating structs that implement the `HelpRequest` trait from functions. -//! -//! # Syntax -//! -//! ```rust,ignore -//! #[help] -//! fn help_my_entry(prev: MyEntry) { -//! // use r_println! here -//! r_println!("Help: ..."); -//! } -//! ``` -//! -//! This expands to: -//! - A struct `HelpMyEntry` implementing `HelpRequest` with `Entry = MyEntry` -//! - The original function with injected `RenderResult` dummy context - use proc_macro::TokenStream; use quote::{ToTokens, quote}; use syn::spanned::Spanned; -- cgit