Skip to main content

Module wasmtime_wast

Module wasmtime_wast 

Source
Expand description

Translation of test configuration in crate::wast into Wasmtime configuration.

Everything is expressed as [CommonOptions], the same options the wasmtime CLI accepts. Harnesses follow the same steps:

  1. Start from Compiler::common_options, or their own options.
  2. Make their own adjustments, such as memory limits.
  3. Apply the test with TestConfig::apply, last so the test has the final say.
  4. Create a [wasmtime::Config] with [CommonOptions::config] and configure each [wasmtime::Store] with [CommonOptions::configure_store].