Skip to content

Commit 2d99bbd

Browse files
authored
Add warning section to build dependency tutorial doc (rust-lang#2413)
1 parent 62d91c5 commit 2d99bbd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

book/src/tutorial-1.md

+6
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ you're unsure.
1313
[build-dependencies]
1414
bindgen = "0.53.1"
1515
```
16+
17+
> ⚠️ **Warning**
18+
>
19+
> `bindgen` needs to be added to the `[build-dependencies]` section, not the normal
20+
> `[dependencies]` section. If you add it as a regular dependency, you will get
21+
> errors like the following: `` error[E0463]: can't find crate for `bindgen` ``

0 commit comments

Comments
 (0)