diff --git a/lib/binding_rust/wasm_language.rs b/lib/binding_rust/wasm_language.rs index d6c77843..7b719c1e 100644 --- a/lib/binding_rust/wasm_language.rs +++ b/lib/binding_rust/wasm_language.rs @@ -4,6 +4,8 @@ pub use wasmtime; #[cfg(feature = "wasm")] pub fn test() { + // Force Cargo to include wasmtime-c-api as a dependency of this crate, + // even though it is only used by the C code. wasmtime_c_api::wasm_engine_new(); }