From 2cd67dd00bfb1e74648c8e8fdd0c75ad4c5b8898 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 6 Aug 2024 06:30:37 -0700 Subject: [PATCH] Increase limits of some component types Increase some limits from 1_000 to 10_000 to handle bytecodealliance/wit-bindgen#1019 --- crates/wasmparser/src/limits.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;