openiap-clib 0.0.24

openiap client c library for SDK wrappers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate cbindgen;

use std::env;

fn main() {
    let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
    cbindgen::Builder::new()
      .with_crate(crate_dir)
      .with_language(cbindgen::Language::C)
      .with_header("typedef struct Option_Client {
  int some_field; // Example field
} Option_Client;
")
      .generate()
      .expect("Unable to generate bindings")
      .write_to_file("clib_openiap.h");
}