//! Tuning Wasmtime for fast compilation.1//!2//! If your application design is compatible with pre-compiling Wasm programs,3//! prefer doing that.45use wasmtime::{Cache, Config, Engine, Result, Strategy};67fn main() -> Result<()> {8let mut config = Config::new();910// Enable the compilation cache, using the default cache configuration11// settings.12config.cache(Some(Cache::from_file(None)?));1314// Enable Winch, Wasmtime's baseline compiler.15config.strategy(Strategy::Winch);1617// Enable parallel compilation.18config.parallel_compilation(true);1920// Build an `Engine` with our `Config` that is tuned for fast Wasm21// compilation.22let engine = Engine::new(&config)?;2324// Now we can use `engine` to compile and/or run some Wasm programs...2526let _ = engine;27Ok(())28}293031