Skip to content

Prepare connectrpc 0.3.2 release#41

Merged
iainmcgin merged 1 commit intomainfrom
iain/release-0.3.2
Apr 3, 2026
Merged

Prepare connectrpc 0.3.2 release#41
iainmcgin merged 1 commit intomainfrom
iain/release-0.3.2

Conversation

@iainmcgin
Copy link
Copy Markdown
Collaborator

Lockstep bump of all three crates to 0.3.2: connectrpc, connectrpc-codegen, connectrpc-build.

Headline

#32 — generated service code no longer emits top-level use statements, so multiple service files can be include!d into the same Rust module without E0252 collisions. This was the proximate motivation for cutting 0.3.2 (it unblocks downstream consumers using buffa-packaging's flat output strategy).

Other changes shipping in 0.3.2

  • fix: use service name const instead of string literal in generated clients #16 — generated client methods reference the per-service *_SERVICE_NAME const instead of repeating the fully-qualified service name as a string literal at every call site.
  • Add wasm32 support and browser-based client example #19wasm32-unknown-unknown target compatibility for the connectrpc crate (default features off), plus a new examples/wasm-client demonstrating a Fetch-based ClientTransport. As a side effect of this PR, the workspace tokio feature footprint narrowed: published connectrpc previously inherited the full workspace tokio feature set when workspace = true was inlined at publish time, and now requests only rt, io-util, sync, time (plus net when the client/server feature is enabled). Downstream crates that use tokio directly should declare their own features rather than relying on transitive activation.
  • Update outdated dependencies #37 — workspace dependency updates.

Notes

  • Path-dep version constraint (build → codegen) already uses caret "0.3", so no change required there.
  • README dependency snippets are caret "0.3", unchanged.
  • CHANGELOG gains a 0.3.2 section with the four entries above.

Lockstep bump of all three crates to 0.3.2: connectrpc, connectrpc-codegen,
connectrpc-build.

Headline fix this cycle is #32: generated service code no longer emits
top-level use statements, so multiple service files can be include!d
into the same Rust module without E0252 collisions. CHANGELOG also
records the smaller user-facing changes accumulated since 0.3.1: the
service-name const reference in generated clients (#16), the narrower
workspace tokio feature footprint plus wasm32 target compatibility
(#19), and workspace dependency updates (#37).

Path-dep version constraint (build → codegen) already uses caret "0.3"
so no change required there.
@iainmcgin iainmcgin marked this pull request as ready for review April 3, 2026 16:17
@iainmcgin iainmcgin requested a review from asacamano April 3, 2026 16:39
@iainmcgin iainmcgin enabled auto-merge (squash) April 3, 2026 16:39
@iainmcgin
Copy link
Copy Markdown
Collaborator Author

cc @windsornguyen once this is pushed to crates.io, let me know if it solves your issues or if there is more to do!

@iainmcgin iainmcgin merged commit 4797d85 into main Apr 3, 2026
11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 3, 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