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

Conversation

jreidinger
Copy link
Contributor

Hi,
at first let me thanks you for this nice project that is quite useful. I use it to setup some first draft for using gobject API from rust for my project and when I follow instructions in book and failed to compile it. After debugging I found that use ffi; in lib.rs solve my issue with generated code and I think it should be part of book so others do not need to face it.
Thanks

@bilelmoussaoui
Copy link
Member

there are probably other things that should be added there but this seems important enough to merge it for now
thanks!

@bilelmoussaoui bilelmoussaoui merged commit 184c6b1 into gtk-rs:master Sep 19, 2024
7 checks passed
@jreidinger
Copy link
Contributor Author

Thanks for merging it. I also consider if I should add pub use auto::traits::*; which I also needs for interfaces, but it is partly covered in handling errors and there is suggested solution to use prelude, so I go with minimal patch which is critical to make basically any generated code works.

@jreidinger jreidinger deleted the improve_book branch September 20, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants