-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local dependencies lead to build panic #937
Comments
Hi @KoltesDigital. Sorry you ran into this and thank you for the reminder to update this example. I think this is a bug in |
This commit updates the `wasm-compose` example to the latest tooling. It updates the examples for the latest `cargo-component` and updates Wasmtime and dependencies to latest. The server also has been updated to use the `bindgen` macro from Wasmtime for generating the server's bindings. Fixes bytecodealliance#937.
This commit updates the `wasm-compose` example to the latest tooling. It updates the examples for the latest `cargo-component` and updates Wasmtime and dependencies to latest. The server also has been updated to use the `bindgen` macro from Wasmtime for generating the server's bindings. Fixes bytecodealliance#937.
This commit updates the `wasm-compose` example to the latest tooling. It updates the examples for the latest `cargo-component` and updates Wasmtime and dependencies to latest. The server also has been updated to use the `bindgen` macro from Wasmtime for generating the server's bindings. Fixes bytecodealliance#937.
Hi @KoltesDigital. I've put up a PR for fixing the example with the latest I'll be tracking down the panic issue with using the service component as a direct dependency (as you have it above) too. |
@peterhuene Thanks! Obviously I would never have been able to do that :) I installed the mentioned rev of
|
Hi @KoltesDigital. For the server, make sure you're not building it with The docs just use Let me know if that isn't the problem and I can look into it. |
Agreed, I was too quick to press Up Enter whereas it totally makes sense that the server is a regular binary. That also explains the use of Thanks for your efforts! |
Hi,
I'm trying to update crates/wasm-compose/example to use current version of
cargo component
.When I declare
middleware
's dependency toservice
:a wild compilation panic: appears:
wasm-tools/crates/wit-component/src/encoding/wit.rs
Line 218 in 8d16aad
I barely understand that dependencies are expected to have an URL, which local ones do not have. Or am I wrong?
Note that the
middleware
WIT does not importservice
because it's still unclear to me and I can't get it to work neither. If I add:then build fails with that error instead:
In brief, can I please have some guidance on compiling a component with local dependencies? I'll gladly PR the changes once they work.
The text was updated successfully, but these errors were encountered: