mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
7c56d893c2
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. |
||
---|---|---|
.. | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
README.md | ||
wasmer.h | ||
wasmer.hh |
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