Skip to content

rust: Fix building of unit-wasm #31

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

Merged
merged 1 commit into from
May 14, 2025
Merged

rust: Fix building of unit-wasm #31

merged 1 commit into from
May 14, 2025

Conversation

ac000
Copy link
Member

@ac000 ac000 commented May 14, 2025

rust: Fix building of unit-wasm

When building the unit-wasm crate we were getting the following
compiler error

  error: failed to run `rustc` to learn about target-specific information

  ...

    --- stderr
    error: Error loading target specification: Could not find specification for target "wasm32-wasi". Run `rustc --print target-list` for a list of built-in targets

This is due to wasm32-wasi being renamed to wasm32-wasip1, with
wasm32-wasi being kept clear for an eventual WASI 1.0 release.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>

@ac000 ac000 force-pushed the wasip1 branch 2 times, most recently from bb2f56e to 7eb5053 Compare May 14, 2025 17:08
When building the rust stuff we were getting the following compiler
error

  error: failed to run `rustc` to learn about target-specific information

  ...

    --- stderr
    error: Error loading target specification: Could not find specification for target "wasm32-wasi". Run `rustc --print target-list` for a list of built-in targets

This is due to wasm32-wasi being renamed to wasm32-wasip1, with
wasm32-wasi being kept clear for an eventual WASI 1.0 release.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
@ac000 ac000 merged commit 12763f6 into nginx:main May 14, 2025
3 checks passed
@ac000 ac000 deleted the wasip1 branch May 14, 2025 17:14
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.

1 participant