Chromium Rust policy
Chromium's Rust policy can be found here. Rust can be used for both first-party and third-party code.
Using Rust for pure first-party code looks like this:
The third-party case is also common. It's likely that you'll also need a small amount of first-party glue code, because very few Rust libraries directly expose a C/C++ API.
The scenario of using a third-party crate is the more complex one, so today's course will focus on:
- Bringing in third-party Rust libraries ("crates")
- Writing glue code to be able to use those crates from Chromium C++. (The same techniques are used when working with first-party Rust code).