Skip to content

Commit

Permalink
Update customizations.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamet committed Sep 28, 2023
1 parent 83b849f commit 79b727b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/main/markdown/customizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ option (scalapb.options) = {
enum_value_naming: CAMEL_CASE
enum_strip_prefix: false
bytes_type: "scodec.bits.ByteVector"
scala3_sources: false
};
```

Expand Down Expand Up @@ -131,6 +132,8 @@ enums to a single Scala file.
found if it is defined under `YourType` companion object, or on a package
object that matches the generated code (or any of its parent packages).

- By default, ScalaPB generates Scala sources that are compatible with both Scala 2 and Scala 3. To generate sources that can be compiled error-free with `-source feature` on Scala 3 or with `-Xsource:3` on Scala 2.13, set `scala3_sources` to `true` or pass the `scala3_sources` generator parameter.

## Package-scoped options

Note: this option is available in ScalaPB 0.8.2 and later.
Expand Down

0 comments on commit 79b727b

Please sign in to comment.