Skip to content

Commit

Permalink
Update tutorial
Browse files Browse the repository at this point in the history
To the latest version of bindgen
Resolve the deprecation warning on CargoCallbacks
  • Loading branch information
mart-e authored and pvdrz committed Dec 10, 2024
1 parent 856dcac commit 1cd618e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion book/src/tutorial-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You can always check the latest version at

```toml
[build-dependencies]
bindgen = "0.65.1"
bindgen = "0.71.0"
```

> ⚠️ **Warning**
Expand Down
2 changes: 1 addition & 1 deletion book/src/tutorial-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() {
.header("wrapper.h")
// Tell cargo to invalidate the built crate whenever any of the
// included header files changed.
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
// Finish the builder and generate the bindings.
.generate()
// Unwrap the Result and panic on failure.
Expand Down

0 comments on commit 1cd618e

Please sign in to comment.