diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-02 01:02:23 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-02 01:25:06 +0800 |
| commit | 11a3258834587a267f63588366ecc00d6b82156c (patch) | |
| tree | 9a7d2db5daa52a5f4de2a9d946c8f15438ab89d3 /mingling_macros/src/help.rs | |
| parent | f31347533c2b13f58eeae29ffc3910ca5e2f04d5 (diff) | |
Add architecture overview and doc comments to macro crate
Diffstat (limited to 'mingling_macros/src/help.rs')
| -rw-r--r-- | mingling_macros/src/help.rs | 19 |
1 files changed, 0 insertions, 19 deletions
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; |
