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

Add speaker notes to Android build rules (#2492)

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

View File

@ -24,3 +24,16 @@ You can now build, push, and run the binary:
```text
Hello from Rust!
```
<details>
- Go through the build steps and demonstrate them running in your emulator.
- Notice the extensive documentation comments? The Android build rules enforce
that all modules have documentation. Try removing it and see what error you
get.
- Stress that the Rust build rules look like the other Soong rules. This is on
purpose to make it as easy to use Rust as C++ or Java.
</details>

View File

@ -38,3 +38,15 @@ You build, push, and run the binary like before:
Hello Bob, it is very
nice to meet you!
```
<details>
- Go through the build steps and demonstrate them running in your emulator.
- A Rust crate named `greetings` must be built by a rule called `libgreetings`.
Note how the Rust code uses the crate name, as is normal in Rust.
- Again, the build rules enforce that we add documentation comments to all
public items.
</details>