diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-17 04:33:54 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-17 04:33:54 +0800 |
| commit | 7b901b44cab92b15a673a801de6785c309b73ddd (patch) | |
| tree | fce888b65fc8283107bcba4325e7ca1ef443f4e6 /mingling_macros/src/derive.rs | |
| parent | aa251efb87b561f62266628f06ad341253fbbdc5 (diff) | |
feat(macros): add Wrap derive macro
Add `#[derive(Wrap)]` to treat a struct as its inner type, generating
`From`, `Deref`, and `DerefMut` implementations. Supports single-field
structs or multi-field structs with a `#[wrap]`-marked field.
Diffstat (limited to 'mingling_macros/src/derive.rs')
| -rw-r--r-- | mingling_macros/src/derive.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mingling_macros/src/derive.rs b/mingling_macros/src/derive.rs index 58f5526..42df76b 100644 --- a/mingling_macros/src/derive.rs +++ b/mingling_macros/src/derive.rs @@ -3,3 +3,4 @@ pub(crate) mod enum_tag; pub(crate) mod grouped; #[cfg(feature = "structural_renderer")] pub(crate) mod structural_data; +pub(crate) mod wrap; |
