Skip to content
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

Fix error when importing very large JS files #4146

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

daxpedda
Copy link
Collaborator

@daxpedda daxpedda commented Oct 8, 2024

long_running_const_eval is triggered when importing very large JS files via e.g. #[wasm_bindgen(module = ...)].
This PR circumvents this error by just slapping #[allow(long_running_const_eval)] where appropriate.
Warnings are still emitted by the compiler, which I consider still a good idea, notifying the user why their compilation time has gone up.

Fixes #4115.

@daxpedda daxpedda merged commit 9725988 into rustwasm:main Oct 8, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating the nightly version of rust gives error on module path:
1 participant