Skip to content

docs(example): add well-known types reflection example with buf - #138

Merged
siennathesane merged 1 commit into
neoeinstein:mainfrom
thsfranca:docs/wkt-reflection-buf-example
Jul 6, 2026
Merged

docs(example): add well-known types reflection example with buf#138
siennathesane merged 1 commit into
neoeinstein:mainfrom
thsfranca:docs/wkt-reflection-buf-example

Conversation

@thsfranca

Copy link
Copy Markdown

Summary

  • Adds example/wkt-reflection-with-buf demonstrating gRPC reflection setup when protobuf messages use well-known types (google.protobuf.Timestamp) with buf + protoc-gen-prost.
  • Documents registering both the generated FILE_DESCRIPTOR_SET and protoc-wkt's GOOGLE_PROTOBUF_FILE_DESCRIPTOR_SET.
  • Adds a CI job that runs buf generate, builds, and tests the example.
  • Links the new example from the repository README.

Closes #64

Validation

  • buf generate in example/wkt-reflection-with-buf
  • cargo build and cargo test in example/wkt-reflection-with-buf (includes reflection_service_builds unit test)

Add example/wkt-reflection-with-buf showing how to register protoc-wkt
descriptor sets alongside generated FILE_DESCRIPTOR_SET constants when
using extern_path for google.protobuf types.

Fixes neoeinstein#64

@siennathesane siennathesane left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Thanks for the extra example

@siennathesane
siennathesane merged commit e2f2fad into neoeinstein:main Jul 6, 2026
6 of 7 checks passed
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.

Add example for how to use well known types with buf

2 participants