Skip to:
Current version 0.7.4 released in May, 2018
https://github.com/scalapb/ScalaPB/blob/master/CHANGELOG.md#v074-2018-05-01
https://mvnrepository.com/artifact/com.thesamet.scalapb/compilerplugin
Why newer version? E.g. it has option to disable generating code for lenses which can reduce compiling time. Currently protobuf generated code is compiled in about 4 min on GitHub CI.https://github.com/scalapb/ScalaPB/blob/master/CHANGELOG.md#083
Complication is that we have custom code to handle gRPC with monix with Observable.
Also in the version of scalapb we are using today, there is an option to disable wrapping object properties in Option type which can simplify code in https://github.com/rchain/rchain/blob/f7e46a9/models/src/main/scala/coop/rchain/casper/protocol/CasperMessage.scala. Now it’s used in RhoTypes.proto only.[(scalapb.field).no_box = true]https://github.com/scalapb/ScalaPB/blob/e8df634/protobuf/scalapb/scalapb.proto#L212-L213From version 0.9.1 of scalapb it can be set on message level also.https://github.com/scalapb/ScalaPB/blob/master/CHANGELOG.md#091
[(scalapb.field).no_box = true]
Current version 0.7.4 released in May, 2018
https://github.com/scalapb/ScalaPB/blob/master/CHANGELOG.md#v074-2018-05-01
https://mvnrepository.com/artifact/com.thesamet.scalapb/compilerplugin
Why newer version? E.g. it has option to disable generating code for lenses which can reduce compiling time. Currently protobuf generated code is compiled in about 4 min on GitHub CI.
https://github.com/scalapb/ScalaPB/blob/master/CHANGELOG.md#083
Complication is that we have custom code to handle gRPC with monix with Observable.
Also in the version of scalapb we are using today, there is an option to disable wrapping object properties in Option type which can simplify code in https://github.com/rchain/rchain/blob/f7e46a9/models/src/main/scala/coop/rchain/casper/protocol/CasperMessage.scala. Now it’s used in RhoTypes.proto only.
[(scalapb.field).no_box = true]
https://github.com/scalapb/ScalaPB/blob/e8df634/protobuf/scalapb/scalapb.proto#L212-L213
From version 0.9.1 of scalapb it can be set on message level also.
https://github.com/scalapb/ScalaPB/blob/master/CHANGELOG.md#091