1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-20 22:36:03 +02:00

Add speaker notes to bindgen slides (#2491)

Part of #1083.
This commit is contained in:
Martin Geisler 2024-12-16 22:54:13 +01:00 committed by GitHub
parent dad8cadc6b
commit 644f849bf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 0 deletions

View File

@ -73,3 +73,14 @@ _interoperability/bindgen/Android.bp_:
```shell ```shell
{{#include ../../build_all.sh:libbirthday_bindgen_test}} {{#include ../../build_all.sh:libbirthday_bindgen_test}}
``` ```
<details>
- The Android build rules will automatically call `bindgen` for you behind the
scenes.
- Notice that the Rust code in `main` is still hard to write. It is good
practice to encapsulate the output of `bindgen` in a Rust library which
exposes a safe interface to caller.
</details>

View File

@ -19,3 +19,10 @@ We already saw this in the
> This assumes full knowledge of the target platform. Not recommended for > This assumes full knowledge of the target platform. Not recommended for
> production. > production.
<details>
- This is just a motivating example. For a real library, you want to use
`bindgen` as shown on the next slide.
</details>