Mercurial > core / rust/sys/btrfs/build.rs
changeset 698: |
96958d3eb5b0 |
parent: |
0ccbbd142694
|
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 22:04:59 -0400 |
permissions: |
-rw-r--r-- |
description: |
fixes |
1 //! src/sys/btrfs/build.rs --- btrfs bindgen builder 5 println!("cargo:rustc-link-search=/usr/include"); 6 println!("cargo:rerun-if-changed=wrapper.h"); 7 let bindings = bindgen::Builder::default() 9 .generate_comments(true) 10 .prepend_enum_name(false) 13 // .allowlist_type("btrfs.*") 14 // .allowlist_var("BTRFS.*") 15 .parse_callbacks(Box::new(bindgen::CargoCallbacks)) 17 .expect("Unable to generate bindings"); 19 .write_to_file(format!( 21 std::env::var("OUT_DIR").unwrap(), 24 .expect("Couldn't write bindings!");