-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Support list of paths in component bindgen macro #9249
Comments
Thanks for the report! To link things here this was implemented in wit-bindgen in bytecodealliance/wit-bindgen#1003 and I think it'd be reasonable to copy over a similar structure into Wasmtime as well. @lwansbrough would you be interested in creating a PR perhaps? |
@alexcrichton I'll see what I can do. I was looking through that commit and this looks like a bug to me. https://github.com/bytecodealliance/wit-bindgen/blob/3e3877da85daf1ed98bd1aee7007e496461c3bd1/crates/guest-rust/macro/src/lib.rs#L215 Line 237 passes |
Good catch! Semantically that'll work out ok since |
Will this enable importing transitive dependencies of the package? Say I am generating binding for package A, but package |
@MarinPostma I believe so yeah, but if it doesn't let me know! |
I'll give it a try then :) |
wit-bindgen includes the option to provide a list of paths for the wit sources. This makes it more practical to satisfy the requirements of imports from other packages. Enabling this behaviour for the component bindgen macro would be helpful.
wit-bindgen docs:
The text was updated successfully, but these errors were encountered: