Skip to content

Commit

Permalink
Increase limits of some component types
Browse files Browse the repository at this point in the history
Increase some limits from 1_000 to 10_000 to handle
bytecodealliance/wit-bindgen#1019
  • Loading branch information
alexcrichton committed Aug 6, 2024
1 parent c26e7d1 commit 2cd67dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/wasmparser/src/limits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ pub const MAX_WASM_MODULE_SIZE: usize = 1024 * 1024 * 1024; //= 1 GiB
pub const MAX_WASM_MODULE_TYPE_DECLS: usize = 100_000;
pub const MAX_WASM_COMPONENT_TYPE_DECLS: usize = 100_000;
pub const MAX_WASM_INSTANCE_TYPE_DECLS: usize = 100_000;
pub const MAX_WASM_RECORD_FIELDS: usize = 1000;
pub const MAX_WASM_VARIANT_CASES: usize = 1000;
pub const MAX_WASM_TUPLE_TYPES: usize = 1000;
pub const MAX_WASM_FLAG_NAMES: usize = 1000;
pub const MAX_WASM_ENUM_CASES: usize = 1000;
pub const MAX_WASM_RECORD_FIELDS: usize = 10_000;
pub const MAX_WASM_VARIANT_CASES: usize = 10_000;
pub const MAX_WASM_TUPLE_TYPES: usize = 10_000;
pub const MAX_WASM_FLAG_NAMES: usize = 10_000;
pub const MAX_WASM_ENUM_CASES: usize = 10_000;
pub const MAX_WASM_INSTANTIATION_EXPORTS: usize = 100_000;
pub const MAX_WASM_CANONICAL_OPTIONS: usize = 10;
pub const MAX_WASM_INSTANTIATION_ARGS: usize = 100_000;
Expand Down

0 comments on commit 2cd67dd

Please sign in to comment.