Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
Signed-off-by: Martynas Gurskas <[email protected]>
  • Loading branch information
Lipt0nas committed Apr 11, 2024
1 parent b5db753 commit fb5a8e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#### v0.6.0+v0.25.0

----
- Core: Added ability to customize enum variant naming styles
- Core: **BREAKING** Changed default enum variant naming style
#### v0.5.0+v0.25.0

----
Expand Down
6 changes: 6 additions & 0 deletions docs/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ uniffi-bindgen-cpp path/to/definitions.udl --config path/to/uniffi.toml
- `from_custom` (required) - an expression to convert from the custom type into underlying type. `{}` will
will be expanded into variable containing the custom value. The expression is used in a
return statement, i.e. `return <expression(value);>`.

- `enum_style` - style for enum variant naming, possible options are:
- `"Capitalized"` - producing enum variants named `ENUM_VARIANT`
- `"Google"` - producing enum variants name `kEnumVariant` (default)

NOTE: the `enum_style` option is separate for bindings and scaffolding generators, to apply this to the scaffolding generator, use the section `[scaffolding.cpp]` instead.

0 comments on commit fb5a8e1

Please sign in to comment.