Skip to content

Commit

Permalink
Add speaker notes to Android build rules (#2492)
Browse files Browse the repository at this point in the history
Part of #1083.
  • Loading branch information
mgeisler authored Dec 16, 2024
1 parent 64bd331 commit dad8cad
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/android/build-rules/binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
12 changes: 12 additions & 0 deletions src/android/build-rules/library.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit dad8cad

Please sign in to comment.