You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
► rs/config/src/embedders.rs Add MAX_NUMBER_EXPORTS constant and MAX_NUMBER_EXPORTS usage; introduce MAX_NUMBER_EXPORTS and MAX_NUMBER_EXPORTS into Config; update associated docs comments and public interface spec references
Enhancement
► rs/embedders/src/wasm_utils/validation.rs Track total number of exports (any kind); validate against max_number_exports; propagate max_number_exports into validate_wasm_binary and export section validation
Enhancement
► rs/embedders/tests/validation.rs Add test can_validate_too_many_total_exports to verify total exports constraint enforcement
Enhancement
► rs/types/wasm_types/src/errors.rs Add TooManyTotalExports error variant and display/help messaging
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
PocketIC does not relax the new total-export limit when function name length limits are disabled, causing previously valid modules with 1,101 short-named entry points to fail installation.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The new total-export cap breaks PocketIC’s existing limit opt-out by rejecting modules with 1,101 valid method exports; the override must be updated and covered by a regression test.
Raise the total-export limit when exported-function limits are disabled
rs/config/src/embedders.rs:298
Please also raise this limit in PocketIC's function_name_length_limits: Disabled configuration path (rs/pocket_ic_server/src/pocket_ic.rs:682–693). That path explicitly raises max_number_exported_functions to 1,000,000,000, but now leaves max_number_exports at 1,100. Consequently, a module with 1,101 short exported methods is rejected even when the existing method-count limit is disabled. Update the opt-out to account for the new total-export cap and add a regression test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Limits the number of exports a module may have (beyond the 1000 exported functions).
This new limit is also added to the interface spec.