Having more than 29 fields in the record! macro gives this error:
error: recursion limit reached while expanding the macro `stringify`
...
= help: consider adding a `#![recursion_limit="128"]` attribute to your crate
Increasing the recursion limit as suggested by the compiler makes the error go away, but I assume the macro can be re-written in a non-recursive way to avoid this (I'm not well-versed in rust macros, though, so maybe not). On one hand though, having more than 29 fields is probably a good indication that it's time to split up modules, so maybe this should just stay as it is :).
Having more than 29 fields in the
record!
macro gives this error:Increasing the recursion limit as suggested by the compiler makes the error go away, but I assume the macro can be re-written in a non-recursive way to avoid this (I'm not well-versed in rust macros, though, so maybe not). On one hand though, having more than 29 fields is probably a good indication that it's time to split up modules, so maybe this should just stay as it is :).
Code Example