mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-02 17:48:47 +02:00
Show path to auto-generate AIDL code on slide (#2417)
This updates the surrounding text to bring it in line with the other slides.
This commit is contained in:
parent
45bb2de220
commit
d868584623
@ -1,7 +1,6 @@
|
|||||||
# Generated Service API
|
# Generated Service API
|
||||||
|
|
||||||
Binder generates a trait corresponding to the interface definition. trait to
|
Binder generates a trait for each interface definition.
|
||||||
talk to the service.
|
|
||||||
|
|
||||||
_birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl_:
|
_birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl_:
|
||||||
|
|
||||||
@ -10,7 +9,9 @@ _birthday_service/aidl/com/example/birthdayservice/IBirthdayService.aidl_:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
_Generated trait_:
|
_out/soong/.intermediates/.../birthdayservice/IBirthdayService.rs_:
|
||||||
|
|
||||||
|
<!-- The example below is a cleaned up and simplified version of the real code. -->
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
trait IBirthdayService {
|
trait IBirthdayService {
|
||||||
@ -23,8 +24,6 @@ trait to talk to the service.
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
|
||||||
- The generated bindings can be found at
|
|
||||||
`out/soong/.intermediates/<path to module>/`.
|
|
||||||
- Point out how the generated function signature, specifically the argument and
|
- Point out how the generated function signature, specifically the argument and
|
||||||
return types, correspond the interface definition.
|
return types, correspond the interface definition.
|
||||||
- `String` for an argument results in a different Rust type than `String` as a
|
- `String` for an argument results in a different Rust type than `String` as a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user