Skip to content

Rename protoc-gen-rust-grpc to protoc-gen-grpc-rust - #2955

Merged
ejona86 merged 2 commits into
grpc:masterfrom
ejona86:protoc-gen-grpc-rust-rename
Oct 23, 2026
Merged

ejona86 merged 2 commits into
grpc:masterfrom
ejona86:protoc-gen-grpc-rust-rename

Conversation

@ejona86

@ejona86 ejona86 commented Oct 23, 2026

Copy link
Copy Markdown
Member

gRPC isn't part of protobuf's rust codegen and isn't generating messages; people would expect the name to be protoc-gen-grpc-rust, matching that of examples like grpc-java, grpc-swift, grpc-web, and even Buf's protoc-gen-grpc-py. People (other than me!) have noticed the non-idiomatic name and even have workarounds for it by using symlinks to provide an alias[1]. Go is the only existing outlier I'm aware of (protoc-gen-go-grpc), but it has a complicated history anyway as it was previously a plugin for the Go Protobuf plugin.

Unfortunately we have done a release, so the old name will be orphaned.

  1. https://github.com/rvolosatovs/docker-protobuf/blob/d387177a3a8139c6a47f1b1a52232e0f4f39f9e2/Dockerfile#L548

gRPC isn't part of protobuf's rust codegen and isn't generating
messages; people would expect the name to be protoc-gen-grpc-rust,
matching that of examples like grpc-java, grpc-swift, grpc-web, and even
Buf's protoc-gen-grpc-py. People (other than me!) have noticed the
non-idiomatic name and even have workarounds for it by using symlinks to
provide an alias[1]. Go is the only existing outlier I'm aware of
(protoc-gen-go-grpc), but it has a complicated history anyway as it
_was_ previously a plugin for the Go Protobuf plugin.

Unfortunately we have done a release, so the old name will be orphaned.

1. https://github.com/rvolosatovs/docker-protobuf/blob/d387177a3a8139c6a47f1b1a52232e0f4f39f9e2/Dockerfile#L548
@ejona86
ejona86 requested a review from dfawley October 23, 2026 18:11
@ejona86
ejona86 merged commit df21319 into grpc:master Oct 23, 2026
62 of 63 checks passed
@ejona86
ejona86 deleted the protoc-gen-grpc-rust-rename branch October 23, 2026 21:01
LucioFranco added a commit that referenced this pull request Oct 26, 2026
…-plz (#2963)

## Motivation

release-plz has failed on every push to `master` since #2955, so the
release PR (#2800) hasn't been updated since Oct 22 and is missing
#2962. The `release` job fails with:

```
Package `protoc-gen-grpc-rust` has `publish = false` or `publish = []` in the Cargo.toml, but it has `publish = true` in the release-plz configuration.
```

and the `release-pr` job is skipped as a result.

In the release-plz version the action installs (0.4.1), a package that
has its own `[[package]]` entry is treated as `publish = true` unless
the entry says otherwise. `check_publish_fields` then errors when that
disagrees with `Cargo.toml`.

## Solution

Set `publish = false` in `release-plz.toml` for the two packages that
have a `[[package]]` entry and `publish = false` in their `Cargo.toml`:

- `protoc-gen-grpc-rust`
- `grpc-rustls`

`grpc-rustls` isn't in the current error, but it has the same setup and
would fail next once `protoc-gen-grpc-rust` passes. The other
unpublished crates (`grpc-xds`, `grpc-google-cloud-auth`,
`xds-test-util`) have no `[[package]]` entry, so the check skips them.

Once this merges, release-plz should regenerate #2800.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants