Skip to content

Bump buffa to v0.3.0 and migrate to TypeRegistry API#24

Merged
iainmcgin merged 4 commits intomainfrom
deps/buffa-0.3.0
Apr 2, 2026
Merged

Bump buffa to v0.3.0 and migrate to TypeRegistry API#24
iainmcgin merged 4 commits intomainfrom
deps/buffa-0.3.0

Conversation

@iainmcgin
Copy link
Copy Markdown
Collaborator

Bumps the buffa workspace dependencies (buffa, buffa-types, buffa-codegen) from 0.2 to 0.3.

buffa v0.3.0 renamed AnyRegistryTypeRegistry and AnyTypeEntryJsonAnyEntry (the old names remain as deprecated aliases for one release cycle). However, buffa_types::register_wkt_types now takes &mut TypeRegistry directly, so the conformance crate's registry initialization must use the new types.

Changes:

  • Cargo.toml: workspace deps 0.20.3
  • conformance/src/lib.rs: migrate to TypeRegistry/JsonAnyEntry/register_json_any/set_type_registry; rename init_any_registryinit_type_registry
  • conformance/src/bin/{client,server}.rs: update import and call site

cargo test --workspace: 294 passed, 0 failed.

Prerequisite for the connect-rust v0.3.0 release.


Note (separate issue, not addressed here): cargo clippy --all-targets reveals 3 pre-existing compile errors in benches/rpc/benches/{rpc_bench,cross_impl_bench}.rs that exist on main independently of this change — the bench callers are out of sync with the checked-in generated client stubs. CI doesn't build with --all-targets so this slipped through. Will address in a follow-up.

buffa v0.3.0 renamed AnyRegistry to TypeRegistry. The deprecated aliases
still exist, but register_wkt_types now takes &mut TypeRegistry, so the
conformance crate's init function must use the new types directly.

- AnyRegistry -> TypeRegistry
- AnyTypeEntry -> JsonAnyEntry
- .register() -> .register_json_any()
- set_any_registry(Box::new(r)) -> set_type_registry(r)
- init_any_registry -> init_type_registry (internal rename)
@iainmcgin iainmcgin marked this pull request as ready for review April 1, 2026 22:52
@iainmcgin iainmcgin enabled auto-merge (squash) April 2, 2026 00:19
@iainmcgin iainmcgin disabled auto-merge April 2, 2026 00:22
@iainmcgin iainmcgin merged commit ef9204d into main Apr 2, 2026
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 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