Skip to content

add enum_attribute and message_attribute to tonic-build #1260

@hawkw

Description

@hawkw

Feature Request

Crates

  • tonic-build

Motivation

prost-build v0.11.6 added new enum_attribute and message_attribute methods to the builder for setting attributes on only enum (proto enums or oneofs) and message types (see tokio-rs/prost#784). However, tonic-build's builder currently only exposes the type_attribute and field_attribute methods from prost-build.

Proposal

We should add new builder methods corresponding to those prost-build methods.

Alternatives

Not do this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions