Skip to content

fix(wit-bindgen-rust): do not encode variants with future payloads - #1583

Merged
rvolosatovs merged 1 commit into
mainfrom
fix/rust-bindgen
Oct 26, 2026
Merged

rvolosatovs merged 1 commit into
mainfrom
fix/rust-bindgen

Conversation

@rvolosatovs

Copy link
Copy Markdown
Member

A variant case with a future or stream payload has no nested async paths, so it was treated as synchronous and got Clone and by-reference Encode impls that do not compile. This also makes the futures.wit and streams.wit codegen tests pass.

… reference

A variant case with a `future` or `stream` payload has no nested async
paths, so it was treated as synchronous and got `Clone` and by-reference
`Encode` impls that do not compile. This also makes the `futures.wit`
and `streams.wit` codegen tests pass.

Assisted-by: claude:claude-opus-5-5
@rvolosatovs
rvolosatovs enabled auto-merge October 26, 2026 17:08
@rvolosatovs
rvolosatovs added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit d0f0ca8 Oct 26, 2026
43 checks passed
@rvolosatovs
rvolosatovs deleted the fix/rust-bindgen branch October 26, 2026 17:20
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.

1 participant