Skip to content

Direct usage of WASI causing breakage during snapshot migration #37

@MarkMcCaskey

Description

@MarkMcCaskey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions