Add first c test to test the C api

This commit is contained in:
Brandon Fish
2019-02-01 22:10:36 -06:00
parent 6f05146737
commit 62f7bb607e
8 changed files with 54 additions and 13 deletions

View File

@ -15,8 +15,10 @@ fn main() {
fn build() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
use cbindgen::Language;
cbindgen::Builder::new()
.with_crate(crate_dir)
.with_language(Language::C)
.generate()
.expect("Unable to generate bindings")
.write_to_file("wasmer.h");