Skip to content

Conversation

@avrabe
Copy link

@avrabe avrabe commented Jul 31, 2025

Summary

Adds separate constraint values for WASI Preview 1 and Preview 2:

  • @platforms//os:wasip1 for WASI Preview 1 (stable)
  • @platforms//os:wasip2 for WASI Preview 2 (ABI-incompatible with Preview 1)
  • Maintains backward compatibility with @platforms//os:wasi alias → wasip1

Use Case

Enables rule sets like rules_rust to distinguish between WASI versions without custom constraints.

References

Adds support for distinguishing WASI Preview 1 and Preview 2:
- wasip1: WASI Preview 1 (stable)
- wasip2: WASI Preview 2 (ABI-incompatible with Preview 1)
- Maintains backward compatibility with 'wasi' alias to 'wasip1'
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.

Add wasip2 and rename wasi to wasip1

1 participant