macros
OfficialMaster Rust macros for powerful code generation.
Authorlazygophers
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides comprehensive guidance and examples for developing robust Rust macros, including declarative, procedural, and derive macros, enabling advanced code generation and metaprogramming.
Core Features & Use Cases
- Declarative Macros: Learn to create simple, pattern-matching macros using
macro_rules!. - Procedural Macros: Understand how to write token-stream manipulating macros for more complex code generation.
- Derive Macros: Implement custom derive macros to automatically generate trait implementations.
- Use Case: When building a complex data structure, use a derive macro to automatically implement
Debug,Clone, or custom serialization traits, saving significant boilerplate code.
Quick Start
Use the macros skill to generate a basic derive macro for a custom struct.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: macros Download link: https://github.com/lazygophers/ccplugin/archive/main.zip#macros Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.