mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-28 01:21:19 +00:00
This patch changes the directory where the C header files are generated, from `CARGO_MANIFEST_DIR` to `OUT_DIR`. The goal is: When `wasm-runtime-c-api` is used as a dependency of another Rust project, then the C header files are accessible in the `target/` directory (i.e. the `OUT_DIR`). Also, since `rustc` has a `--out-dir` directory, it increases the flexibility of this approach: The user can generate the C header files where she wants.
Wasmer Runtime C API
Generating header files
Run make capi
from wasmer project root directory
Running tests
The tests can be run via cargo test
, E.g. cargo test -p wasmer-runtime-c-api -- --nocapture
Running manually
cmake . && make && make test
from the lib/runtime-c-api/tests
directory