Summary of "Rust's Real World Wins in Blink [BlinkOn 21]"

Overview (Rust in Blink/Chrome)

The talk (BlinkOn 21) covers Rust projects already shipping in Blink/Chrome, plus tooling and process for integrating Rust, focusing on real-world performance and security outcomes.


Shipping Rust projects in Blink/Chrome

1) Fontations (memory-safe font stack)

2) XML parsing in Rust (XML document parser)

3) Rust PNG decoding (replacing libpng in multiple components)

4) Additional Rust-related work mentioned


Tooling & process for integrating Rust into Chrome

Relaxed approval process for Rust usage

Rust usage in Chrome was eased from:

Still required:

Importing a Rust crate into Chromium (3 steps)

  1. Edit cargo.toml in the Chromium repo Example: add a dependency on the Rust crate (e.g., xml crate), selecting allowed versions and optionally enabling/disabling crate features to avoid unused deps. Cargo config supports typical Rust tooling workflows (like dependency inspection).

  2. Vendor the crate / download into a vendor directory Ensures Chromium and related second-party projects (e.g., V8, ANGLE, PDFium) use unified crate versions and features, avoiding duplicated crate versions across repos.

  3. Generate build files Uses templates (e.g., handlebars + supplementary TOML) so tweaks don’t necessarily require changes to tooling itself.

Calling Rust from C++: cxxbridge

The recommended integration path in Chrome is cxx bridge tool.

Key characteristics:


FFI design learnings / constraints (C++ ↔ Rust)

Restrictions of the CXX bridge tool

Practical patterns


Unsafe in Rust: performance and policy

Does Rust require unsafe for performance?

Why unsafe still appears

Policy for first-party use of unsafe


Supply-chain risk discussion (crates.io poisoning)

A question was raised about supply chain attacks (malicious/hijacked crates). The response highlights:


Main speaker/source list

Category ?

Technology


Share this summary


Is the summary off?

If you think the summary is inaccurate, you can reprocess it with the latest model.

Video