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

Clean up the FFI slides #163

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Clean up the FFI slides #163

merged 1 commit into from
Jun 13, 2024

Conversation

jonathanpallant
Copy link
Member

  • Switch to std::ffi, not std::os::raw
  • Clarify type conversions / type aliases
  • Change C example to take a null-terminated string
  • Show off c"Hello" literals

* Switch to std::ffi, not std::os::raw
* Clarify type conversions / type aliases
* Change C example to take a null-terminated string
* Show off c"Hello" literals
Copy link

Deploying ferrous-systems-rust-training with  Cloudflare Pages  Cloudflare Pages

Latest commit: 028efd1
Status: ✅  Deploy successful!
Preview URL: https://b8ffe3b9.ferrous-systems-rust-training.pages.dev
Branch Preview URL: https://fix-ffi-types.ferrous-systems-rust-training.pages.dev

View logs

@miguelraz
Copy link
Contributor

I do like showing off the c"..." functionality right away. Merging.

@miguelraz miguelraz merged commit 03f8f7d into main Jun 13, 2024
3 checks passed
@miguelraz miguelraz deleted the fix-ffi-types branch June 13, 2024 13:15
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