Stream: git-wasmtime

Topic: wasmtime / PR #4715 Upgrade wasm-tools crates, namely the...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 15 2022 at 21:15):

alexcrichton opened PR #4715 from upgrade-wasm-tools to main:

This commit pulls in the latest versions of all of the wasm-tools
family of crates. There were two major changes that happened in
wasm-tools in the meantime:

The changes made to the component model were:

  1. The unit type no longer exists. This was generally a simple change
    where the Unit case in a few different locations were all removed.

  2. The expected type was renamed to result. This similarly was
    relatively lightweight and mostly just a renaming on the surface. I
    took this opportunity to rename val::Result to val::ResultVal and
    types::Result to types::ResultType to avoid clashing with the
    standard library types. The Option-based types were handled with
    this as well.

  3. The payload type of variant and result types are now optional.
    This affected many locations that calculate flat type
    representations, ABI information, etc. The #[derive(ComponentType)]
    macro now specifically handles Rust-defined enum types which have
    no payload to the equivalent in the component model.

  4. Functions can now return multiple parameters. This changed the
    signature of invoking component functions because the return value is
    now bound by ComponentNamedList (renamed from ComponentParams).
    This had a large effect in the tests, fuzz test case generation, etc.

  5. Function types with 2-or-more parameters/results must uniquely name
    all parameters/results. This mostly affected the text format used
    throughout the tests.

I haven't added specifically new tests for multi-return but I changed a
number of tests to use it. Additionally I've updated the fuzzers to all
exercise multi-return as well so I think we should get some good
coverage with that.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 15 2022 at 21:17):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 15 2022 at 21:17):

alexcrichton created PR review comment:

This change is not related to this PR on the surface, but it fixes a compile error on nightly Rust which will be required to get fuzzing back online.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 15 2022 at 21:18):

alexcrichton created PR review comment:

(and it's also not useful to land this independently because we also need to update wasm-mutate which needs an update to wasmparser which needs ...)

view this post on Zulip Wasmtime GitHub notifications bot (Aug 15 2022 at 21:18):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 16 2022 at 14:45):

alexcrichton updated PR #4715 from upgrade-wasm-tools to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 16 2022 at 20:06):

alexcrichton updated PR #4715 from upgrade-wasm-tools to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 16 2022 at 20:45):

alexcrichton updated PR #4715 from upgrade-wasm-tools to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 16 2022 at 20:45):

alexcrichton has marked PR #4715 as ready for review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 16 2022 at 20:49):

alexcrichton requested fitzgen for a review on PR #4715.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 16 2022 at 20:49):

alexcrichton requested peterhuene for a review on PR #4715.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 16 2022 at 21:59):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 17 2022 at 14:29):

alexcrichton updated PR #4715 from upgrade-wasm-tools to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 17 2022 at 14:29):

alexcrichton has enabled auto merge for PR #4715.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 17 2022 at 14:42):

alexcrichton updated PR #4715 from upgrade-wasm-tools to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 17 2022 at 15:11):

alexcrichton updated PR #4715 from upgrade-wasm-tools to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 17 2022 at 16:17):

alexcrichton merged PR #4715.


Last updated: Nov 22 2024 at 17:03 UTC