-
-
Notifications
You must be signed in to change notification settings - Fork 287
Update docs for proto toolchain #1129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docs for proto toolchain #1129
Conversation
| | with_single_line_to_string | `boolean, optional (default False)` <br> Enables generation of toString() methods that use a single line format. | ||
| | blacklisted_protos | `List of labels, optional` <br> List of protobuf targets to exclude from recursive building. | ||
| | code_generator | `Label, optional (has default)` <br> Which code generator to use. A sensible default is provided. | ||
| | named_generators | `String dict, optional` <br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add explanation what this dict contains. ie a mapping from protoc plugin name to a class name implementing protocbridge.ProtocCodeGenerator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This table is from previous doc, I would like to keep changes not related to deps toolchain for another PR
| | blacklisted_protos | `List of labels, optional` <br> List of protobuf targets to exclude from recursive building. | ||
| | code_generator | `Label, optional (has default)` <br> Which code generator to use. A sensible default is provided. | ||
| | named_generators | `String dict, optional` <br> | ||
| | extra_generator_dependencies | `List of labels, optional` <br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add explanation that this contains a list of jars where named generators are loaded from.
| | extra_generator_dependencies | `List of labels, optional` <br> | ||
| | scalac | `Label, optional (has default)` <br> Target for scalac. A sensible default is provided. | ||
|
|
||
| To configure dependencies, configure a different `scala_proto_deps_toolchain` and declare it in a `BUILD` file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "to configure custom dependencies"? Or does somewhere else clarify that by default you don't need to do anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated docs with clarification
* Update docs for proto toolchain * Clarify when to use toolchains
Docs updates related to a new
scala_proto_deps_toolchaintoolchain