Update ScalaPB compiler plugin to 0.10.x version released Oct, 2019

Description

Current version 0.7.4 released in May, 2018

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

Activity

Details

Assignee

Reporter

Priority

Components

Created April 21, 2020 at 12:31 PM
Updated May 15, 2020 at 9:23 AM

Flag notifications