Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[book] Add note to use ffi #1601

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading