AmitPr opened issue #5390:
Hi!
My project depends on both
wit-bindgen
andwasmtime-component-macro
. I'm grabbing these dependencies from the git repositories directly.Because of https://github.com/bytecodealliance/wit-bindgen/pull/442,
wit-bindgen
useswit-parser
v0.3.1. This is an issue becausewasmtime-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.
AmitPr labeled issue #5390:
Hi!
My project depends on both
wit-bindgen
andwasmtime-component-macro
. I'm grabbing these dependencies from the git repositories directly.Because of https://github.com/bytecodealliance/wit-bindgen/pull/442,
wit-bindgen
useswit-parser
v0.3.1. This is an issue becausewasmtime-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.
alexcrichton commented on issue #5390:
Thanks for the report! I've fixed this in https://github.com/bytecodealliance/wasmtime/pull/5393
alexcrichton closed issue #5390:
Hi!
My project depends on both
wit-bindgen
andwasmtime-component-macro
. I'm grabbing these dependencies from the git repositories directly.Because of https://github.com/bytecodealliance/wit-bindgen/pull/442,
wit-bindgen
useswit-parser
v0.3.1. This is an issue becausewasmtime-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: Nov 22 2024 at 16:03 UTC