Skip to content

[21.0.0] Use WASI builder directly in C API #8578

Merged
alexcrichton merged 1 commit intobytecodealliance:release-21.0.0from
alexcrichton:another-backport
May 7, 2024
Merged

[21.0.0] Use WASI builder directly in C API #8578
alexcrichton merged 1 commit intobytecodealliance:release-21.0.0from
alexcrichton:another-backport

Conversation

@alexcrichton
Copy link
Member

Backport of #8572 to get the fix for #8552 out sooner

* Use WASI builder directly in C API

This commit updates the C API to use the `WasiCtxBuilder` directly
within `wasi_config_t` instead of buffering up the options separately.
This keeps the behavior of the Rust-based API more similar to the C API
and should also help resolve bytecodealliance#8552 due to errors being returned more
eagerly in the builder-based API.

This additionally makes some minor modifications to the C APIs here as
appropriate.

Close bytecodealliance#8552

* Review comments
@alexcrichton alexcrichton requested a review from a team as a code owner May 7, 2024 21:09
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team May 7, 2024 21:09
@alexcrichton alexcrichton enabled auto-merge (squash) May 7, 2024 21:09
@alexcrichton alexcrichton merged commit c9d9098 into bytecodealliance:release-21.0.0 May 7, 2024
@alexcrichton alexcrichton deleted the another-backport branch May 7, 2024 21:32
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.

2 participants