Add a comment about how wasmtime-c-api is linked by cargo

This commit is contained in:
Max Brunsfeld 2023-10-27 21:53:31 +01:00
parent 7715e2477a
commit 2c0b52eec6

View file

@ -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();
}