-
Notifications
You must be signed in to change notification settings - Fork 57
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
Resource Static Methods Cause Build Failure When Imported #284
Comments
I was hoping to learn something by looking at this problem. For now, all I can do is confirm the The
The
Can the |
I've gotten as far as seeing where the deepest code check is failing. Here a field that is still empty is checked whether it contains the resource name. If I comment out this test, the component builds successfully. I don't know why the |
This should be fixed once |
@toadslop Nice reproducer. Made it very easy to look into. |
You're welcome! Thanks for all the hard work on this great project! |
Hey all, I ran into an issue where I couldn't import static resource functions which were defined in another wasm component. I have a minimal example attached as a zip file below.
In the project, I have an cdylib called
exporter
that exports a single wit resource, called 'my-resource' with a single static method called 'get-static' which returns a string. I also have an project called importer that creates an executable that imports the resource with the static method. I find that when I build the importing package, I get the following error:This issue doesn't happen when I change the static method to a normal method. Any idea what's going wrong here?
The steps to reproduce using the package below are as follows:
cd exporter
cargo component build
. You should see this output:cd ../importer
cargo component build
. You should see this output:min-ex.zip
The text was updated successfully, but these errors were encountered: