Skip to content

release: v0.4.0#65

Merged
iainmcgin merged 5 commits intomainfrom
release/v0.4.0
Apr 27, 2026
Merged

release: v0.4.0#65
iainmcgin merged 5 commits intomainfrom
release/v0.4.0

Conversation

@iainmcgin
Copy link
Copy Markdown
Collaborator

@iainmcgin iainmcgin commented Apr 24, 2026

Release prep for v0.4.0.

What's in this PR

Breaking changes summary (full detail in CHANGELOG)

Change PR
Ancillary types under pkg::__buffa::{view, oneof, ext}; include_proto! consumer pattern #62
compute_size/write_to take &mut SizeCache; cached_size() and __buffa_cached_size removed #22
DefaultInstance/DefaultViewInstance no longer unsafe; HasDefaultViewInstance removed #70, #71
Any.value is bytes::Bytes #51
CodeGenError::{OneofNameConflict, ViewNameConflict} removed #62

After merge

  • Tag v0.4.0 on the merge commit
  • Dispatch publish-crates.yml (idempotent; 7 crates)
  • connect-rust needs __buffa:: path updates and SizeCache-threaded compute_size/write_to before it can pick up buffa 0.4

Review focus

The CHANGELOG [0.4.0] migration table and the docs/guide.md custom-type / Oneofs sections.

Consolidates breaking changes from #62 (__buffa:: sentinel namespacing,
include_proto! macro, per-package register_types) and #55 (ViewEncode,
__buffa_cached_size on views) plus the additive/fix entries since 0.3.0.
Docs (guide.md, migration-*.md) still reference the old layout — follow-up
commit will update those.
- guide.md: rewrite include pattern to buffa::include_proto!; rewrite
  Oneofs section for __buffa::oneof:: tree (no suffix); add Generated
  module layout section explaining the sentinel; update view, extension
  const, and register_types paths.
- migration-from-prost.md: replace per-file include! with include_proto!;
  add view import path.
- migration-from-protobuf.md: replace include! with include_proto!;
  rewrite oneof section for __buffa::oneof:: paths.
- DESIGN.md already updated by #62 — no changes.
The headline 0.4.0 feature was missing from the user guide. Adds a
"Encoding from views" subsection under Zero-copy views with a
build-from-borrows example and the proxy-fast-path pattern.
- buffa/src/lib.rs: bump no_std example version "0.3" -> "0.4"
- docs/guide.md: drop stale __buffa_cached_size from reserved-prefix
  example list (field removed in #22); use __buffa_phantom instead
@iainmcgin iainmcgin marked this pull request as ready for review April 27, 2026 22:48
@iainmcgin iainmcgin requested a review from rpb-ant April 27, 2026 22:48
@iainmcgin iainmcgin enabled auto-merge (squash) April 27, 2026 22:51
@iainmcgin iainmcgin merged commit f444eab into main Apr 27, 2026
7 checks passed
@iainmcgin iainmcgin deleted the release/v0.4.0 branch April 27, 2026 23:15
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 27, 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