From 4a193bf2ec2faf279cc87db8bd2b0b4d2993611c Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Thu, 19 Sep 2024 21:32:29 +0200 Subject: [PATCH] Add note to use ffi --- book/src/tutorial/high_level_rust_api.md | 2 ++ 1 file changed, 2 insertions(+) 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; ```