-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format all Markdown files with
dprint
This is the result of running `dprint fmt` after making two temporary changes: - removing `src/` from the list of excluded directories, - removing the `rustfmt` configuration. The effect of the first change is that we normalize the formatting of all Markdown files. The effect of the second is that we avoid reformatting code blocks in the Markdown files. I want to reformat the Rust code in a follow-up step since some of the changes seem unnecessary or undesirable. Thanks to mdbook-i18n-helpers 0.2, the POT file is nearly unchanged after this, meaning that all existing translations remain valid. A few messages were changed because of stray whitespace characters: msgid "" "Slices always borrow from another object. In this example, `a` has to remain " -"'alive' (in scope) for at least as long as our slice. " +"'alive' (in scope) for at least as long as our slice." msgstr "" I have not updated CI to require perfectly formatted files. I think doing so might be annoying since it makes it much harder to submit small fixes directly from the GitHub editor. So for now, I suggest that we simply run `dprint` by hand every few weeks. If dprint/check#11 is fixed so that `dprint` can annotate the lines that need fixing directly, then I think we can consider more strict formatting checks.
- Loading branch information
Showing
259 changed files
with
2,816 additions
and
2,323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,12 @@ | |
course: Android | ||
session: Android | ||
--- | ||
|
||
# Welcome to Rust in Android | ||
|
||
Rust is supported for system software on Android. This means that | ||
you can write new services, libraries, drivers or even firmware in Rust | ||
(or improve existing code as needed). | ||
Rust is supported for system software on Android. This means that you can write | ||
new services, libraries, drivers or even firmware in Rust (or improve existing | ||
code as needed). | ||
|
||
> We will attempt to call Rust from one of your own projects today. So try to | ||
> find a little corner of your code base where we can move some lines of code to | ||
|
@@ -15,15 +16,19 @@ you can write new services, libraries, drivers or even firmware in Rust | |
<details> | ||
|
||
The speaker may mention any of the following given the increased use of Rust | ||
in Android: | ||
The speaker may mention any of the following given the increased use of Rust in | ||
Android: | ||
|
||
- Service example: [DNS over HTTP](https://security.googleblog.com/2022/07/dns-over-http3-in-android.html) | ||
- Service example: | ||
[DNS over HTTP](https://security.googleblog.com/2022/07/dns-over-http3-in-android.html) | ||
|
||
- Libraries: [Rutabaga Virtual Graphics Interface](https://crosvm.dev/book/appendix/rutabaga_gfx.html) | ||
- Libraries: | ||
[Rutabaga Virtual Graphics Interface](https://crosvm.dev/book/appendix/rutabaga_gfx.html) | ||
|
||
- Kernel Drivers: [Binder](https://lore.kernel.org/rust-for-linux/[email protected]/) | ||
- Kernel Drivers: | ||
[Binder](https://lore.kernel.org/rust-for-linux/[email protected]/) | ||
|
||
- Firmware: [pKVM firmware](https://security.googleblog.com/2023/10/bare-metal-rust-in-android.html) | ||
- Firmware: | ||
[pKVM firmware](https://security.googleblog.com/2023/10/bare-metal-rust-in-android.html) | ||
|
||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# AIDL | ||
|
||
The [Android Interface Definition Language | ||
(AIDL)](https://developer.android.com/guide/components/aidl) is supported in Rust: | ||
The | ||
[Android Interface Definition Language | ||
(AIDL)](https://developer.android.com/guide/components/aidl) is supported in | ||
Rust: | ||
|
||
* Rust code can call existing AIDL servers, | ||
* You can create new AIDL servers in Rust. | ||
- Rust code can call existing AIDL servers, | ||
- You can create new AIDL servers in Rust. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.