Hello, apologies if this isn't the correct place for this but I recently became aware of an issue involving this crate and the snapshot migration process:
Most of the WASI imports in a Wasm module come from the version of Rust being used (presumably from the stdlib or core), however crates using the wasi crate as a dependency, such as the getrandom crate cause specific versions of WASI imports to be included in the Wasm module. This puts those crates in a bit a strange state during snapshot migration because they have to choose which snapshot to support to be able to generate a valid WASI module.
This is an issue because it means they may have to choose, for example, between supporting nightly, stable, latest stable, or previous stable. Even if that weren't the case, every WASI snapshot requiring all dependent crates to update or break with the latest release isn't ideal either.
Unfortunately, I'm not familiar enough with Rustc or the nightly release process to have any suggestions for how this could be fixed.
Please let me know if I can help out with fixing this.
Hello, apologies if this isn't the correct place for this but I recently became aware of an issue involving this crate and the snapshot migration process:
Most of the WASI imports in a Wasm module come from the version of Rust being used (presumably from the stdlib or core), however crates using the
wasicrate as a dependency, such as the getrandom crate cause specific versions of WASI imports to be included in the Wasm module. This puts those crates in a bit a strange state during snapshot migration because they have to choose which snapshot to support to be able to generate a valid WASI module.This is an issue because it means they may have to choose, for example, between supporting nightly, stable, latest stable, or previous stable. Even if that weren't the case, every WASI snapshot requiring all dependent crates to update or break with the latest release isn't ideal either.
Unfortunately, I'm not familiar enough with Rustc or the nightly release process to have any suggestions for how this could be fixed.
Please let me know if I can help out with fixing this.