Skip to main content

Module formatter

Module formatter 

Source
Expand description

Source code formatting for generated Rust code.

Uses syn to parse the token stream and prettyplease to pretty-print it. This ensures that all generated files are human-readable and consistently formatted.

Functionsยง

format_token_stream
Format a token stream into a pretty-printed Rust source string.