Skip to content

Commit

Permalink
Add note to use ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger authored and bilelmoussaoui committed Sep 26, 2024
1 parent 34b6bf0 commit 3de01f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions book/src/tutorial/high_level_rust_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
```
Expand Down

0 comments on commit 3de01f2

Please sign in to comment.