()
| 8 | use wasmtime::*; |
| 9 | |
| 10 | pub fn engine() -> Option<Engine> { |
| 11 | let mut config = Config::new(); |
| 12 | config.wasm_threads(true); |
| 13 | config.shared_memory(true); |
| 14 | match Engine::new(&config) { |
| 15 | Ok(engine) => { |
| 16 | assert!(cfg!(target_pointer_width = "64")); |
| 17 | Some(engine) |
| 18 | } |
| 19 | Err(e) => { |
| 20 | assert!(cfg!(target_pointer_width = "32"), "unexpected error {e:?}"); |
| 21 | None |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | #[test] |
| 27 | #[cfg_attr(miri, ignore)] |