cbindgen icon indicating copy to clipboard operation
cbindgen copied to clipboard

export.mangle rename_types = "snake_case" not working

Open TomzBench opened this issue 3 years ago • 1 comments

i have

[export.mangle]
rename_types = "snake_case"

I have structs such as MyStruct, and i expect the header to rename this type to my_struct however it does not seem to be renamed in the header.

TomzBench avatar May 23 '22 17:05 TomzBench

Based on tests, this has to do with renaming generic names, like Foo<u8> into Foo_u8 or FooU8, etc. PR #703 allows renaming items with a rule, but it's now been stale for a year and is definitely out of date.

morrisonlevi avatar Aug 23 '22 22:08 morrisonlevi