(engine: &Engine, binary: &[u8])
| 318 | /// ``` |
| 319 | #[cfg(any(feature = "cranelift", feature = "winch"))] |
| 320 | pub fn from_binary(engine: &Engine, binary: &[u8]) -> Result<Module> { |
| 321 | crate::CodeBuilder::new(engine) |
| 322 | .wasm_binary(binary, None)? |
| 323 | .compile_module() |
| 324 | } |
| 325 | |
| 326 | /// Creates a new WebAssembly `Module` from the contents of the given `file` |
| 327 | /// on disk, but with assumptions that the file is from a trusted source. |
nothing calls this directly
no test coverage detected