diff --git a/crates/wasmparser/src/limits.rs b/crates/wasmparser/src/limits.rs index 3325af7fad..261c43b55b 100644 --- a/crates/wasmparser/src/limits.rs +++ b/crates/wasmparser/src/limits.rs @@ -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;