Refactor configuration for the pooling allocator (#5205)
This commit changes the APIs in the `wasmtime` crate for configuring the pooling allocator. I plan on adding a few more configuration options in the near future and the current structure was feeling unwieldy for adding these new abstractions. The previous `struct`-based API has been replaced with a builder-style API in a similar shape as to `Config`. This is done to help make it easier to add more configuration options in the future through adding more methods as opposed to adding more field which could break prior initializations.
This commit is contained in:
@@ -13,9 +13,9 @@ mod codegen_settings;
|
||||
pub mod component_types;
|
||||
mod config;
|
||||
mod instance_allocation_strategy;
|
||||
mod instance_limits;
|
||||
mod memory;
|
||||
mod module;
|
||||
mod pooling_config;
|
||||
mod single_inst_module;
|
||||
mod spec_test;
|
||||
mod stacks;
|
||||
@@ -25,9 +25,9 @@ mod value;
|
||||
pub use codegen_settings::CodegenSettings;
|
||||
pub use config::{Config, WasmtimeConfig};
|
||||
pub use instance_allocation_strategy::InstanceAllocationStrategy;
|
||||
pub use instance_limits::InstanceLimits;
|
||||
pub use memory::{MemoryConfig, NormalMemoryConfig, UnalignedMemory, UnalignedMemoryCreator};
|
||||
pub use module::ModuleConfig;
|
||||
pub use pooling_config::PoolingAllocationConfig;
|
||||
pub use single_inst_module::SingleInstModule;
|
||||
pub use spec_test::SpecTest;
|
||||
pub use stacks::Stacks;
|
||||
|
||||
Reference in New Issue
Block a user