Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions book/src/non-system-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ library:
use std::env;
use std::path::PathBuf;

use bindgen::CargoCallbacks;

fn main() {
// This is the directory where the `c` library is located.
let libdir_path = PathBuf::from("hello")
Expand Down Expand Up @@ -86,7 +84,7 @@ fn main() {
.header(headers_path_str)
// Tell cargo to invalidate the built crate whenever any of the
// included header files changed.
.parse_callbacks(Box::new(CargoCallbacks::new()))
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
// Finish the builder and generate the bindings.
.generate()
// Unwrap the Result and panic on failure.
Expand Down
Loading