Skip to content

Commit 1cd618e

Browse files
mart-epvdrz
authored andcommitted
Update tutorial
To the latest version of bindgen Resolve the deprecation warning on CargoCallbacks
1 parent 856dcac commit 1cd618e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

book/src/tutorial-1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can always check the latest version at
1010

1111
```toml
1212
[build-dependencies]
13-
bindgen = "0.65.1"
13+
bindgen = "0.71.0"
1414
```
1515

1616
> ⚠️ **Warning**

book/src/tutorial-3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn main() {
3030
.header("wrapper.h")
3131
// Tell cargo to invalidate the built crate whenever any of the
3232
// included header files changed.
33-
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
33+
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
3434
// Finish the builder and generate the bindings.
3535
.generate()
3636
// Unwrap the Result and panic on failure.

0 commit comments

Comments
 (0)