Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[21.0.0] Add GetHost to generated bindings for more flexible linking #8620

Merged

Conversation

alexcrichton
Copy link
Member

Backport of #8448 to the upcoming release branch

…dealliance#8448)

* Remove unused generated `add_root_to_linker` method

* WIP: bindgen GetHost

* Compile with Rust 1.78+

Use <https://users.rust-lang.org/t/generic-closure-returns-that-can-capture-arguments/76513/3>
as a guide of how to implement this by making the `GetHost` trait a bit
uglier.

* Add an option to skip `&mut T -> T` impls

Also enable this for WASI crates since they do their own thing with
`WasiView` for now. A future refactoring should be able to remove this
option entirely and switch wasi crates to a new design of `WasiView`.

* Update test expectations

* Review comments

* Undo temporary change

* Handle some TODOs

* Remove no-longer-relevant note

* Fix wasmtime-wasi-http doc link

---------

Co-authored-by: Alex Crichton <[email protected]>
@alexcrichton alexcrichton requested a review from a team as a code owner May 14, 2024 20:10
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team May 14, 2024 20:10
@alexcrichton alexcrichton merged commit 37d71db into bytecodealliance:release-21.0.0 May 14, 2024
48 checks passed
@alexcrichton alexcrichton deleted the another-backport branch May 14, 2024 21:10
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.

3 participants