We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e0094e commit 0917399Copy full SHA for 0917399
book/src/non-system-libraries.md
@@ -20,8 +20,6 @@ library:
20
use std::env;
21
use std::path::PathBuf;
22
23
-use bindgen::CargoCallbacks;
24
-
25
fn main() {
26
// This is the directory where the `c` library is located.
27
let libdir_path = PathBuf::from("hello")
@@ -86,7 +84,7 @@ fn main() {
86
84
.header(headers_path_str)
87
85
// Tell cargo to invalidate the built crate whenever any of the
88
// included header files changed.
89
- .parse_callbacks(Box::new(CargoCallbacks::new()))
+ .parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
90
// Finish the builder and generate the bindings.
91
.generate()
92
// Unwrap the Result and panic on failure.
0 commit comments