Skip to content

Use manual bindings for WASIp2/3#830

Merged
newpavlov merged 1 commit into
masterfrom
wasi_manual_bindings
Jun 17, 2026
Merged

Use manual bindings for WASIp2/3#830
newpavlov merged 1 commit into
masterfrom
wasi_manual_bindings

Conversation

@newpavlov

Copy link
Copy Markdown
Member

Closes #827

Comment thread src/backends/wasi_p2_3.rs
@newpavlov newpavlov force-pushed the wasi_manual_bindings branch from 490bd5e to b8d55f6 Compare March 13, 2026 11:16
@newpavlov newpavlov requested a review from dhardy March 16, 2026 16:46
Comment thread src/backends/wasi_p2_3.rs
Comment thread src/backends/wasi_p2_3.rs Outdated
@newpavlov

Copy link
Copy Markdown
Member Author

@alexcrichton
Do you have an approximate timeline for a full (i.e. non-RC) wasip3 release?

@alexcrichton

Copy link
Copy Markdown
Collaborator

I'd say 3-6 months-ish would be my best guess

@newpavlov

Copy link
Copy Markdown
Member Author

@dhardy @josephlr
Non-RC version of WASIp3 was recently released, so I believe this PR is ready for merge.

Comment thread src/backends/wasi_p2_3.rs

@dhardy dhardy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm far from an expert in WASI, but from reading the discussions in #828/... I'm happy to stamp this as "approved".

IIUC from reading the discussion, link-time failure with contrived no-std examples is possible, but this will rarely be observed in practice; further, incorrect linking (due to the missing type information) should not happen.

@alexcrichton any further comments?

@newpavlov

newpavlov commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

IIUC if we want to be absolutely sure that the linking problem can not happen we could use extern crate std; for this backend, though I would prefer not to.

@newpavlov newpavlov force-pushed the wasi_manual_bindings branch from 69b1d96 to 066825c Compare June 17, 2026 13:15
@newpavlov newpavlov force-pushed the wasi_manual_bindings branch from 066825c to 0f439ca Compare June 17, 2026 13:17
@alexcrichton

Copy link
Copy Markdown
Collaborator

No concerns/comments from me, I think this is reasonable to land 👍

@newpavlov newpavlov merged commit 1ea268a into master Jun 17, 2026
79 checks passed
@newpavlov newpavlov deleted the wasi_manual_bindings branch June 17, 2026 14:48
@newpavlov newpavlov mentioned this pull request Jun 17, 2026
newpavlov added a commit that referenced this pull request Jun 17, 2026
### Added
- `wasm64-unknown-unknown` target support for `wasm_js` backend [#848]

### Changed
- Drop `wasip2` and `wasip3` dependencies in favor of manual bindings
[#830]

[#830]: #830
[#848]: #848
eleboucher pushed a commit to eleboucher/towonel that referenced this pull request Jun 18, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [getrandom](https://github.com/rust-random/getrandom) | workspace.dependencies | patch | `0.4.2` → `0.4.3` |

---

### Release Notes

<details>
<summary>rust-random/getrandom (getrandom)</summary>

### [`v0.4.3`](https://github.com/rust-random/getrandom/blob/HEAD/CHANGELOG.md#043---2026-06-17)

[Compare Source](rust-random/getrandom@v0.4.2...v0.4.3)

##### Added

- `wasm64-unknown-unknown` target support for `wasm_js` backend [#&#8203;848]

##### Changed

- Drop `wasip2` and `wasip3` dependencies in favor of manual bindings [#&#8203;830]

[0.4.3]: rust-random/getrandom@v0.4.2...v0.4.3

[#&#8203;830]: rust-random/getrandom#830

[#&#8203;848]: rust-random/getrandom#848

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEwMS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://codeberg.org/towonel/towonel/pulls/31
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.

Why do we depend on wit-bindgen as a regular dependency

5 participants