-
Notifications
You must be signed in to change notification settings - Fork 216
instance type declaration size is out of bounds #1104
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
instance type declaration size is out of bounds #1104
Comments
Thanks for the report! Can you share a binary or two here perhaps? The limit here is hardcoded at this location and is pretty arbitrary and should be fine to increase. |
I cannot share the original wit file, but this test wit file seems to reproduce the same issue: testcase.txt (github doesn't allow .wit files?) If anything else is needed for reproduction, please let me know. |
Tested again with @alexcrichton Is there anything I could help you with regarding this issue? |
I mostly just haven't had time and/or a chance to investigate this. The location I linked I think is still reasonable to increase, but you'll need to get things working locally to use custom builds of the various tools in play. For example you'd need to build a custom |
Thanks for the comment! After getting a local build running, increasing the Is this one something that can be increased? |
Yeah that seems reasonable to me to increase |
Apologies if this isn't the correct place to report this.
I'm running into linking issues in rust after increasing the number of functions in the wit file.
I run
wit-bindgen rust .
to generate rust bindings from a wit file. That is then compiled in a static lib crate, which succeeds, but linking fails for a binary that is linked against the static library. Compiling the whole workspace withcargo b -r --target wasm32-wasip2
.The issue seems to start happening when there is around 45k functions. 44k functions worked fine, 45.5k didn't work, with everything else being the same.
Additional information that might matter:
wit-bindgen
is ~60mbwit-bindgen
is ~200mbrustc 1.85.0-nightly (4d669fb34 2024-12-08)
Let me know if anything else is needed to identify the issue.
Thanks in advance!
The text was updated successfully, but these errors were encountered: