mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-20 06:21:09 +02:00
parent
dad8cadc6b
commit
644f849bf8
@ -73,3 +73,14 @@ _interoperability/bindgen/Android.bp_:
|
||||
```shell
|
||||
{{#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>
|
||||
|
@ -19,3 +19,10 @@ We already saw this in the
|
||||
|
||||
> This assumes full knowledge of the target platform. Not recommended for
|
||||
> production.
|
||||
|
||||
<details>
|
||||
|
||||
- This is just a motivating example. For a real library, you want to use
|
||||
`bindgen` as shown on the next slide.
|
||||
|
||||
</details>
|
||||
|
Loading…
x
Reference in New Issue
Block a user