From 76c4520cea12f564f159c3d95941f519d44395dc Mon Sep 17 00:00:00 2001 From: Paul Sajna <paulsajna@gmail.com> Date: Sun, 11 Mar 2018 11:19:56 -0700 Subject: [PATCH] stat is now autogenerated correctly --- src/stat/build.rs | 12 +++++------- src/stat/cbindgen.toml | 1 + 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/stat/build.rs b/src/stat/build.rs index 74a9a42f..57845793 100644 --- a/src/stat/build.rs +++ b/src/stat/build.rs @@ -3,11 +3,9 @@ extern crate cbindgen; use std::{env, fs}; fn main() { - /* - *let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set"); - *fs::create_dir_all("../../target/include").expect("failed to create include directory"); - *cbindgen::generate(crate_dir) - * .expect("failed to generate bindings") - * .write_to_file("../../target/include/sys/stat.h"); - */ + let crate_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR not set"); + fs::create_dir_all("../../target/include").expect("failed to create include directory"); + cbindgen::generate(crate_dir) + .expect("failed to generate bindings") + .write_to_file("../../target/include/sys/stat.h"); } diff --git a/src/stat/cbindgen.toml b/src/stat/cbindgen.toml index d4f38953..58eced99 100644 --- a/src/stat/cbindgen.toml +++ b/src/stat/cbindgen.toml @@ -1,6 +1,7 @@ sys_includes = ["sys/types.h"] include_guard = "_SYS_STAT_H" language = "C" +style = "Tag" [enum] prefix_with_name = true -- GitLab