MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / max_component_instance_size

Method max_component_instance_size

crates/wasmtime/src/config.rs:3935–3938  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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).

Calls

no outgoing calls

Tested by

no test coverage detected