Add a comment about how wasmtime-c-api is linked by cargo
This commit is contained in:
parent
7715e2477a
commit
2c0b52eec6
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue