Skip to main content

Module debug

Module debug 

Source
Expand description

Optional, env-var-gated dump of generated code for local inspection.

Unlike cargo expand, this writes only the tokens a backend macro produced directly — it does not recursively expand the nested derives and macros inside that output — which keeps the dump focused on the code generation under inspection.

Functions§

write_debug_output
Write a prettyprinted copy of expanded to disk when debug output is enabled.