google / comprehensive-rust

This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust.
https://google.github.io/comprehensive-rust/
Apache License 2.0
27.8k stars 1.66k forks source link

Android section is untested #2398

Open mgeisler opened 1 week ago

mgeisler commented 1 week ago

We need to figure out a way to test the code in the Android section. I'm teaching the class right now, and I've discovered several places where the code has drifted from AOSP in such a way that it no longer compiles.

mgeisler commented 1 week ago

While fixing this, I realized that we should change how we store the Android examples: if we could include them somewhere in AOSP, we would be forced to keep them current as the platform evolves.

We would then pull in the relevant pages and examples as part of a build process — or perhaps we could simply include them via a Git sub-module? I don't have a lot of experience with those, but since AOSP is a large collection of Git repositories, it seems reasonable to assume that we could pull in one of these repositories as a sub-module.