mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-22 23:05:22 +02:00
parent
64bd331314
commit
dad8cadc6b
@ -24,3 +24,16 @@ You can now build, push, and run the binary:
|
|||||||
```text
|
```text
|
||||||
Hello from Rust!
|
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>
|
||||||
|
@ -38,3 +38,15 @@ You build, push, and run the binary like before:
|
|||||||
Hello Bob, it is very
|
Hello Bob, it is very
|
||||||
nice to meet you!
|
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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user