Skip to content

deps: bump buffa to 0.6.0, regenerate checked-in code - #108

Merged
iainmcgin merged 2 commits into
mainfrom
iainmcgin/buffa-0.6.0-bump
May 18, 2026
Merged

iainmcgin merged 2 commits into
mainfrom
iainmcgin/buffa-0.6.0-bump

Conversation

@iainmcgin

Copy link
Copy Markdown
Collaborator

Raises the workspace buffa / buffa-types / buffa-codegen floor from 0.5 to 0.6 and regenerates all four checked-in buf generate output trees (conformance/src/generated/, examples/eliza/src/generated/, examples/multiservice/src/generated/, benches/rpc/src/generated/).

What the regen picks up (buffa 0.6.0)

  • with_<field>() builder-style setters on every explicit-presence field (proto3/proto2 optional, editions field_presence = EXPLICIT).
  • MessageName impls on owned and view message types — PACKAGE / NAME / FULL_NAME / TYPE_URL consts, computed at codegen time.
  • serde::Serialize impls on view types when generate_json is enabled, plus MapView::iter_unique() / len_unique().
  • Empty __oneof.rs / __ext.rs / __view_oneof.rs ancillary content files are no longer emitted. The orphaned files are deleted and the package stitcher (*.mod.rs) no longer include!s them. The only ancillary files that remain are connectrpc.conformance.v1.{service,client_compat}.__oneof.rs / .__view_oneof.rs, which actually contain oneof definitions.

The hand-written diff is Cargo.toml (workspace dependency floor + comment) and README.md (Generated Code Dependencies snippet). Everything else under */generated/* is task generate:all output against buffa v0.6.0.

Not changed

examples/bazel/Cargo.toml is intentionally left at buffa = "0.5.2" — it pins published crates.io artifacts (connectrpc 0.4.2 requires buffa 0.5), so bumping it before connectrpc 0.5.0 ships would break that standalone example. It will be updated as part of the 0.5.0 release.

Verification

All six conformance suites pass against the regenerated code:

Suite Result
Server default 3600 / 3600
Client Connect 2580 / 2580
Client gRPC 1454 / 1454
Client gRPC-Web 2838 / 2838

task lint, task test, task check:minimal, cargo doc (deny broken intra-doc links), cargo check --target wasm32-unknown-unknown, and task example:multiservice:test all pass.

Raises the workspace `buffa` / `buffa-types` / `buffa-codegen` floor from
0.5 to 0.6 and regenerates all four checked-in `buf generate` output trees
(`conformance`, `examples/eliza`, `examples/multiservice`, `benches/rpc`).

The regen picks up the buffa 0.6.0 codegen changes:

- `with_<field>()` builder setters on every explicit-presence field
- `MessageName` impls on owned and view message types
- `serde::Serialize` impls on view types (plus `MapView::iter_unique`)
- empty `__oneof.rs` / `__ext.rs` / `__view_oneof.rs` ancillary content
  files are no longer emitted; the orphaned files are deleted and the
  package stitcher (`*.mod.rs`) no longer `include!`s them

`examples/bazel` is intentionally left at `buffa = "0.5.2"` — it pins
published crates.io artifacts (`connectrpc 0.4.2` requires `buffa 0.5`)
and will be bumped alongside the 0.5.0 release.

All conformance suites pass against the regenerated code: server default
3600/3600, client Connect 2580/2580, client gRPC 1454/1454, client
gRPC-Web 2838/2838.
@github-actions

github-actions Bot commented May 16, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@iainmcgin
iainmcgin marked this pull request as ready for review May 18, 2026 16:45
@iainmcgin
iainmcgin enabled auto-merge (squash) May 18, 2026 16:48
@iainmcgin
iainmcgin merged commit 758ae11 into main May 18, 2026
12 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants