-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Split C interop slides into smaller slides. #2645
Conversation
Part of google#2445. This splits up the slides in the interop with C section into smaller slides. For calling C from Rust, instead of the long slide containing the sample C lib, explaining bindgen, and how to run the Rust code, these are now presented on separate slides. Similarly for calling Rust from C, the simple Rust library is on its own slide, followed by a slide on how to then call and run the Rust library from C.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for breaking up these big slides! This should help the flow when going through this in class. I just have one request to move content around a little, but otherwise these changes look good.
Create a wrapper header file for the library (not strictly needed in this | ||
example): | ||
|
||
_interoperability/bindgen/libbirthday_wrapper.h_: | ||
|
||
```c | ||
{{#include bindgen/libbirthday_wrapper.h:include}} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be moved to the next slide about using bindgen. This is part of the bindgen setup, not the setup for the C library.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing! I've made the adjustment.
Everything looks good now, thanks for the contribution! ❤️ |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Part of #2445.
This splits up the slides in the interoperability with C section into smaller slides.
For calling C from Rust, instead of the long slide containing the sample C lib, explaining bindgen, and how to run the Rust code, these are now presented on separate slides.
Similarly for calling Rust from C, the simple Rust library is on its own slide, followed by a slide on how to then call and run the Rust library from C.