Skip to content

wildonion/macrocosm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Macro World

collection of Rust macro examples. Macros extend the AST at compile time useful to do something at compile time rather than runtime like sending data to SQL database before runtime.

Types

  • decl_macro macro_rules! may_macro{}
  • proc_macro #[mymacro]
  • proc_macro_derive #[derive(MyMacro)]
  • proc_macro_attribute #[mymacro(attr1, attr2)]

About

all types of Rust complex macro examples

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages