Stream: git-wasmtime

Topic: wasmtime / issue #5390 component-macro: Dependency confli...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2022 at 05:30):

AmitPr opened issue #5390:

Hi!

My project depends on both wit-bindgen and wasmtime-component-macro. I'm grabbing these dependencies from the git repositories directly.

Because of https://github.com/bytecodealliance/wit-bindgen/pull/442, wit-bindgen uses wit-parser v0.3.1. This is an issue because wasmtime-component-macro depends on v0.3, which has API mismatch. Specifically, this error is encountered during compilation:

error[E0599]: no function or associated item named `parse` found for struct `World` in the current scope
   --> /Users/amitp/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/29b23d4/crates/component-macro/src/bindgen.rs:123:24
    |
123 |                 World::parse("<macro-input>", &s.value()).map_err(|e| Error::new(s.span(), e))?;
    |                        ^^^^^
    |                        |
    |                        function or associated item not found in `World`
    |                        help: there is an associated function with a similar name: `parse_file`

It seems like a relatively easy fix: https://github.com/bytecodealliance/wit-bindgen/pull/442/files#diff-775b613a11243734c7a6424be2eba37d42f92e2b331001ae06eeb4c65310a5feR152-R154

I would do this myself, but getting set up with the wasmtime repository seems to be a pretty big undertaking and I simply don't have the time.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2022 at 05:30):

AmitPr labeled issue #5390:

Hi!

My project depends on both wit-bindgen and wasmtime-component-macro. I'm grabbing these dependencies from the git repositories directly.

Because of https://github.com/bytecodealliance/wit-bindgen/pull/442, wit-bindgen uses wit-parser v0.3.1. This is an issue because wasmtime-component-macro depends on v0.3, which has API mismatch. Specifically, this error is encountered during compilation:

error[E0599]: no function or associated item named `parse` found for struct `World` in the current scope
   --> /Users/amitp/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/29b23d4/crates/component-macro/src/bindgen.rs:123:24
    |
123 |                 World::parse("<macro-input>", &s.value()).map_err(|e| Error::new(s.span(), e))?;
    |                        ^^^^^
    |                        |
    |                        function or associated item not found in `World`
    |                        help: there is an associated function with a similar name: `parse_file`

It seems like a relatively easy fix: https://github.com/bytecodealliance/wit-bindgen/pull/442/files#diff-775b613a11243734c7a6424be2eba37d42f92e2b331001ae06eeb4c65310a5feR152-R154

I would do this myself, but getting set up with the wasmtime repository seems to be a pretty big undertaking and I simply don't have the time.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2022 at 16:01):

alexcrichton commented on issue #5390:

Thanks for the report! I've fixed this in https://github.com/bytecodealliance/wasmtime/pull/5393

view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2022 at 16:47):

alexcrichton closed issue #5390:

Hi!

My project depends on both wit-bindgen and wasmtime-component-macro. I'm grabbing these dependencies from the git repositories directly.

Because of https://github.com/bytecodealliance/wit-bindgen/pull/442, wit-bindgen uses wit-parser v0.3.1. This is an issue because wasmtime-component-macro depends on v0.3, which has API mismatch. Specifically, this error is encountered during compilation:

error[E0599]: no function or associated item named `parse` found for struct `World` in the current scope
   --> /Users/amitp/.cargo/git/checkouts/wasmtime-41807828cb3a7a7e/29b23d4/crates/component-macro/src/bindgen.rs:123:24
    |
123 |                 World::parse("<macro-input>", &s.value()).map_err(|e| Error::new(s.span(), e))?;
    |                        ^^^^^
    |                        |
    |                        function or associated item not found in `World`
    |                        help: there is an associated function with a similar name: `parse_file`

It seems like a relatively easy fix: https://github.com/bytecodealliance/wit-bindgen/pull/442/files#diff-775b613a11243734c7a6424be2eba37d42f92e2b331001ae06eeb4c65310a5feR152-R154

I would do this myself, but getting set up with the wasmtime repository seems to be a pretty big undertaking and I simply don't have the time.


Last updated: Dec 23 2024 at 12:05 UTC