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

Split C interop slides into smaller slides. #2645

Merged
merged 6 commits into from
Feb 22, 2025

Conversation

egithinji
Copy link
Contributor

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.

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.
Copy link
Collaborator

@randomPoison randomPoison left a 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.

Comment on lines 25 to 32
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}}
```
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

@randomPoison
Copy link
Collaborator

Everything looks good now, thanks for the contribution! ❤️

@randomPoison randomPoison enabled auto-merge (squash) February 17, 2025 18:22
auto-merge was automatically disabled February 21, 2025 11:05

Head branch was pushed to by a user without write access

@randomPoison randomPoison enabled auto-merge (squash) February 21, 2025 20:23
auto-merge was automatically disabled February 22, 2025 07:09

Head branch was pushed to by a user without write access

@randomPoison randomPoison enabled auto-merge (squash) February 22, 2025 19:39
@randomPoison randomPoison merged commit 49e4efc into google:main Feb 22, 2025
35 checks passed
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