Skip to content

Move wasi32 system to wasm32-wasip1 target #435954

Closed

Description

@Janrupf

Currently, nixpkgs defines the wasm32-wasip1 target to have the triple wasm32-unknown-wasi:

wasi32 = {
config = "wasm32-unknown-wasi";
useLLVM = true;
};

This seems to already have caused some confusion:

# Rust uses `wasm32-wasip?` rather than `wasm32-unknown-wasi`.
# We cannot know which subversion does the user want, and
# currently use WASI 0.1 as default for compatibility. Custom
# users can set `rust.rustcTarget` to override it.
if final.isWasi then
"${cpu_}-wasip1"

A new Rust compiler doesn't accept wasm32-unknown-wasi as a target triple anymore, and clang seems to alias wasm32-unknown-wasi to wasm32-wasip1, which is the now preferred target name.

I'm unsure whether this will cause any breakage, but as far as I understand these targets behave equivalently.

It might make sense to define a new system wasi32_1p and wasi32_2p altogether to disambiguate between these 2.

Activity

  1. added
    2.status: stale
    on Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stale

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions