Skip to content

Latest commit

 

History

History

micromacros

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Micro Macros

There were several projects here. Now just one. That will change soon enough.

Projects

  • Vek: Using declarative macros to reimplement parts of the builtin vec! [ tests ]
  • Iterable Structs: A macro that uses Rust's Any type to allow iterating across field name-value pairs, similar to what one might do in Python. The Any type essentially erases the actual type information, but reflection can be used to go back from the Any to actual types. [ tests ]

CLI

Instead of cargo run, like the other cartons, each project in this carton uses cargo test.

$ cd micromacros/iterable
$ cargo test
...
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s