(engine: &Engine, binary: &[u8])
| 194 | /// For more information on semantics and errors see [`Component::new`]. |
| 195 | #[cfg(any(feature = "cranelift", feature = "winch"))] |
| 196 | pub fn from_binary(engine: &Engine, binary: &[u8]) -> Result<Component> { |
| 197 | crate::CodeBuilder::new(engine) |
| 198 | .wasm_binary(binary, None)? |
| 199 | .compile_component() |
| 200 | } |
| 201 | |
| 202 | /// Same as [`Module::deserialize`], but for components. |
| 203 | /// |
nothing calls this directly
no test coverage detected