# development


09/17/2019, 6:03 PM
for something else completely different, i'm working on a proc macro for another rust project, and it's not the worst thing in the world! i mostly see proc macros right now as useful for a rust library (which other rust code uses) as opposed to a cdylib like pants, but i have been absolutely loving
macros, which you can just write out right next to your functions!!! if we were to incorporate some complex macro (like a proc macro) in pants, it might be e.g. in our
for the
crate, in which we could do fancy things like maybe writing out a python (
) definition automatically from a rust enum to solve ? i'm not sure if macros are necessarily the right way to solve that, but it does seem like one way to solve that, especially if the macro usage is also limited to our build scripts (so we don't end up with the pants codebase scattered with hacky macros).