You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use wasm-wasip2 target as default build target #355
When the Rust compiler supports a [_preview2_ version of the WASI target][1],
Hi! I saw this today, but the referred issue has been closed as complete. The latest cargo-component 0.19 still uses wasm-wasip1 as the default build target.
Rust in the latest stable 1.82 has promoted wasm-wasip2 as a tier-2 target, see rust-lang/rust#129997. I think it's time to change the README and the behavior of cargo-component?
Yes. The current situation is, the wasm32-wasip2 target does a lot of things automatically, which is great and makes it easy to drop into existing Rust development workflows. But, it also doesn't support all the features of cargo component. I looked into it briefly, and didn't see anything supporting import name maps. So there's more to figure out here before we can switch cargo component to using wasm32-wasip2 internally.
Activity
pchickey commentedon Nov 27, 2024
Related: #356
sunfishcode commentedon Nov 27, 2024
Yes. The current situation is, the wasm32-wasip2 target does a lot of things automatically, which is great and makes it easy to drop into existing Rust development workflows. But, it also doesn't support all the features of cargo component. I looked into it briefly, and didn't see anything supporting import name maps. So there's more to figure out here before we can switch cargo component to using wasm32-wasip2 internally.
Update the README to discuss the wasm32-wasip2 feature.
sunfishcode commentedon Nov 27, 2024
I've also now posted #359 to update the README text quoted above.
ifsheldon commentedon Nov 28, 2024
OK, thanks. I am not super familiar with cargo-component.
I think this issue can be turned into a tracker if you can list missing features on the wasm32-wasip2 target.
Update the README to discuss the wasm32-wasip2 feature. (#359)