Skip to content
0:00 / 0:00

#stylo#firefox#servo

The Story of Stylo: Replacing Firefox's CSS engine with Rust — Josh Matthews

Rust Belt Rust Conference

4.8K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Lobsters.
  • Presented by Josh Matthews
  • May be out of date. Uploaded 8 years ago, in an area where tools change fast.

Intermediate. Assumes working knowledge.

17K views8 years ago1 recommendation

Systems programmingWeb developmentRustCSS and layoutHow browsers work

Josh Matthews shares the case study of Stylo, integrating a Rust-based CSS engine into Firefox's massive C++ codebase.

Firefox is in the process of shipping a new implementation of CSS styling written in Rust as part of Mozilla’s Servo project. Firefox has 20+ million lines of code and hundreds of millions of users, so this is no small undertaking! As a case study for integrating a large, multi-repo Rust project into a larger C++ project, this talk explains how we: - created bi-directional FFI boundaries that maximized each project’s strengths - addressed cross-language mismatches including threadsafety and ownership - integrated two fast-moving codebases while managing regressions We’ll cover specific successes and failures that emerged over the course of the project, and discuss how Rust contributed to those outcomes.

Why it's here

1 person recommends this

What people say. Recommended as a case study of integrating Rust into a large C++ codebase.

calvinon Lobsters • Recommends

The Story of Stylo: Replacing Firefox's CSS engine with Rust