Skip to content

Add option to prettify generated Rust code#1497

Open
qthree wants to merge 1 commit intogoogle:mainfrom
qthree:prettyplease
Open

Add option to prettify generated Rust code#1497
qthree wants to merge 1 commit intogoogle:mainfrom
qthree:prettyplease

Conversation

@qthree
Copy link

@qthree qthree commented Sep 7, 2025

Adds IncludeCppConfig::prettify and pretty!() macro

include_cpp! {
    pretty!()
}

This will pretty print generated Rust code with prettyplease crate, for human-readable output.
I'm open to adding additional documentation to the PR, if it's desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant