The maximum size, in bytes, allocated for a component instance's `VMComponentContext` metadata as well as the aggregate size of this component's core instances `VMContext` metadata. The [`wasmtime::component::Instance`][crate::component::Instance] type has a static size but its internal `VMComponentContext` is dynamically sized depending on the component being instantiated. This size limit loosel
(&mut self, size: usize)
| 3933 | /// where `max_component_instance_size` is rounded up to the size and alignment |
| 3934 | /// of the internal representation of the metadata. |
| 3935 | pub fn max_component_instance_size(&mut self, size: usize) -> &mut Self { |
| 3936 | self.config.limits.component_instance_size = size; |
| 3937 | self |
| 3938 | } |
| 3939 | |
| 3940 | /// The maximum number of core instances a single component may contain |
| 3941 | /// (default is unlimited). |
no outgoing calls
no test coverage detected