wasmer/lib/runtime-c-api
Ivan Enderlin 7c56d893c2 feat(runtime-c-api) Generate the C header file in OUT_DIR.
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.
2019-03-06 10:42:06 +01:00
..
src chore(runtime-c-api) Fix CS. 2019-03-05 10:07:08 +01:00
tests Fix C API table/global/memory imports 2019-03-02 22:28:00 -06:00
build.rs feat(runtime-c-api) Generate the C header file in OUT_DIR. 2019-03-06 10:42:06 +01:00
Cargo.toml fix(runtime-c-api) Update cbindgen. 2019-03-05 14:28:35 +01:00
README.md Run cmake tests as part of a rust test 2019-02-02 20:16:53 -06:00
wasmer.h chore(runtime-c-api) Regenerate the header files. 2019-03-05 10:07:08 +01:00
wasmer.hh chore(runtime-c-api) Regenerate the header files. 2019-03-05 10:07:08 +01:00

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