ducc-sys 0.1.2

Low-level Duktape FFI for the `ducc` crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate bindgen;

fn main() {
    bindgen::Builder::default()
        .header("duktape/wrapper.h")
        .clang_arg("-Iduktape")
        .clang_arg("-std=c99")
        .trust_clang_mangling(false)
        .rust_target(bindgen::RustTarget::Stable_1_25)
        .whitelist_type("^(?:rust_)?duk_.*")
        .whitelist_function("^(?:rust_)?duk_.*")
        .whitelist_function("^(?:rust_)?ducc_.*")
        .whitelist_var("^DUK_.*")
        .generate()
        .expect("failed to generate bindings")
        .write_to_file("src/bindings.rs")
        .expect("failed to write bindings");
}