diff --git a/book/src/tutorial/high_level_rust_api.md b/book/src/tutorial/high_level_rust_api.md index 96afeb939..471daa64e 100644 --- a/book/src/tutorial/high_level_rust_api.md +++ b/book/src/tutorial/high_level_rust_api.md @@ -114,11 +114,13 @@ v1_52 = ["ffi/v1_52", "v1_50"] The lib.rs file will not be replaced when you run gir. All the code that gir will generate for us is going to be in src/auto. We need to include all `auto` files in our library. +Also it needs to include sys create so auto files can use it. To do so, let's update the `src/lib.rs` file as follows: ```rust #![cfg_attr(docsrs, feature(doc_cfg))] +use ffi; pub use auto::*; mod auto; ```