Sha256: 81fc663f0897e3d8c744ca71b0230939106c1fa2a78e026f3bf982923b7d270a

Contents?: true

Size: 608 Bytes

Versions: 2

Compression:

Stored size: 608 Bytes

Contents

extern crate cbindgen;

use std::env;

use cbindgen::{Builder, Config, Language};

fn main() {
    let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();

    let config = Config { language: Language::Cxx, .. Config::default() };

    Builder::new()
          .with_crate(crate_dir)
          .with_config(config)
          .with_parse_deps(true)
          .with_parse_include(&["libpasta"])
          .with_parse_exclude(&["winapi"])
          // .with_parse_expand(&["pasta"])
          .generate()
          .expect("Unable to generate bindings")
          .write_to_file("include/pasta-bindings.h");
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
libpasta-0.1.0.pre.rc0-x86_64-linux ext/pasta-bindings/libpasta/libpasta-capi/build.rs
libpasta-0.0.6-x86_64-linux ext/pasta-bindings/libpasta/libpasta-capi/build.rs