wasmer/lib/runtime-c-api
Ivan Enderlin 76caebebb4 fix(runtime-c-api) Provide a link target.
When compiling `wasmer-runtime-c-api` as a dependency of another
crate, `rustc` emits this warning:

```
warning: The package `wasmer_runtime_c_api` provides no linkable
target. The compiler might raise an error while compiling
`foo`. Consider adding 'dylib' or 'rlib' to key `crate-type` in
`wasmer_runtime_c_api`'s Cargo.toml. This warning might turn into a
hard error in the future.
```

To solve this issue, the `rlib` type has been added to the
`crate-type` list.
2019-03-06 11:02:14 +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) Build: Copy the C header files from OUT_DIR to CARGO_MANIFEST_DIR. 2019-03-06 10:58:40 +01:00
Cargo.toml fix(runtime-c-api) Provide a link target. 2019-03-06 11:02:14 +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