std: Update dependency on wasi crate#155406
Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom Apr 18, 2026
Merged
Conversation
This commit updates the crate dependency that the standard library has on the `wasi` crate. This is now updated to depending explicitly on the `wasip1` crate and the `wasip2` crate published on crates.io. These crates are managed in the [same location][repo] as the `wasi` crate and represent a different versioning scheme which doesn't require multi-version WASI support to require depending on the same crate at multiple versions. The code in libstd is updated to reference `wasip1` and `wasip2` directly as well. [repo]: https://github.com/bytecodealliance/wasi-rs
Collaborator
|
The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging. These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
Collaborator
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
bjorn3
reviewed
Apr 17, 2026
| // depends on two version of (one for the `wasm32-wasip1` target and | ||
| // another for the `wasm32-wasip2` target). | ||
| if pkg.name.to_string() != "wasi" && !seen_pkgs.insert(&*pkg.name) { | ||
| if !seen_pkgs.insert(&*pkg.name) { |
Member
There was a problem hiding this comment.
Mark-Simulacrum
approved these changes
Apr 18, 2026
Contributor
GuillaumeGomez
added a commit
to GuillaumeGomez/rust
that referenced
this pull request
Apr 18, 2026
…ark-Simulacrum std: Update dependency on `wasi` crate This commit updates the crate dependency that the standard library has on the `wasi` crate. This is now updated to depending explicitly on the `wasip1` crate and the `wasip2` crate published on crates.io. These crates are managed in the [same location][repo] as the `wasi` crate and represent a different versioning scheme which doesn't require multi-version WASI support to require depending on the same crate at multiple versions. The code in libstd is updated to reference `wasip1` and `wasip2` directly as well. [repo]: https://github.com/bytecodealliance/wasi-rs
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Apr 18, 2026
…ark-Simulacrum std: Update dependency on `wasi` crate This commit updates the crate dependency that the standard library has on the `wasi` crate. This is now updated to depending explicitly on the `wasip1` crate and the `wasip2` crate published on crates.io. These crates are managed in the [same location][repo] as the `wasi` crate and represent a different versioning scheme which doesn't require multi-version WASI support to require depending on the same crate at multiple versions. The code in libstd is updated to reference `wasip1` and `wasip2` directly as well. [repo]: https://github.com/bytecodealliance/wasi-rs
This was referenced Apr 18, 2026
rust-bors Bot
pushed a commit
that referenced
this pull request
Apr 18, 2026
…uwer Rollup of 10 pull requests Successful merges: - #150230 (spec next chunk for trustedlen) - #155284 (net::tcp/udp: fix docs about how set_nonblocking is implemented) - #146870 (fix: add aliasing rules for Box) - #154003 (Make std::fs::File Send on UEFI) - #155187 (std: fix HashMap RNG docs wording) - #155255 (Document why `layout.align() + layout.size()` doesn't overflow) - #155351 (Reorganize tests from `tests/ui/issues/`) - #155406 (std: Update dependency on `wasi` crate) - #155447 (Simplify `parse_limited`) - #155481 (Delete `SizeSkeleton::Generic`)
rust-timer
added a commit
that referenced
this pull request
Apr 18, 2026
Rollup merge of #155406 - alexcrichton:update-wasi-deps, r=Mark-Simulacrum std: Update dependency on `wasi` crate This commit updates the crate dependency that the standard library has on the `wasi` crate. This is now updated to depending explicitly on the `wasip1` crate and the `wasip2` crate published on crates.io. These crates are managed in the [same location][repo] as the `wasi` crate and represent a different versioning scheme which doesn't require multi-version WASI support to require depending on the same crate at multiple versions. The code in libstd is updated to reference `wasip1` and `wasip2` directly as well. [repo]: https://github.com/bytecodealliance/wasi-rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit updates the crate dependency that the standard library has on the
wasicrate. This is now updated to depending explicitly on thewasip1crate and thewasip2crate published on crates.io. These crates are managed in the same location as thewasicrate and represent a different versioning scheme which doesn't require multi-version WASI support to require depending on the same crate at multiple versions. The code in libstd is updated to referencewasip1andwasip2directly as well.