VOOZH about

URL: https://thenewstack.io/google-brings-rust-into-chromium-project/

⇱ Google Brings Rust into Chromium Project - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-01-13 02:23:04
Google Brings Rust into Chromium Project
Frontend Development

Google Brings Rust into Chromium Project

Google now supports third-party Rust libraries from C++ in the Chromium project. It's a big deal, writes The New Stack founder Alex Williams.
Jan 13th, 2023 2:23am by Alex Williams
👁 Featued image for: Google Brings Rust into Chromium Project

Google is now supporting third-party Rust libraries from C++ in the Chromium project.

Dana Jansens, writing on the Google Security blog, writes that to start, the team is adding a production Rust toolchain to its build systems. Rust code will appear in the Chrome binary within the following year.

It’s a big deal for Google to add Rust libraries to Chromium. It follows deep investments by Microsoft and Amazon Web Services into Rust programming. A note that Jansens makes clear: Google is not necessarily supporting Rust itself, but third-party Rust libraries.

Playing it safe comes through in the tone of Jansen’s post. They are starting “slow” and will be selective about third-party libraries they will consider.

Mozilla originally developed Rust, a typesafe language. Microsoft and Amazon Web Services have invested in Rust. What this says about Mozilla is, in some respects, pretty straightforward. Rust is a success. But otherwise, there’s a certain degree of uncertainty about Firefox, with its dwindling market share

Google is adopting Rust libraries for two significant reasons. The move to accept Rust libraries is expected to help speed development and improve security in Chromium. In terms of growth, Jansens cites less code to write, fewer design docs, and fewer security reviews. For protection: more specifically, it’s the opportunity to increase the number of lines of code without memory safety bugs and at the same time decrease the code’s bug density.

Some will remain skeptical of the shift due to, for example, the introduction of new bugs. Lolinder writes on Hacker News:

“Rewriting in Rust is not necessarily a good idea for any given project, and Google is almost certainly not going to be proactively rewriting large amounts of Chrome in Rust any more than Mozilla is.

The reason is that bugs exist primarily in new code, not code that has been untouched for a long time. While you may solve some latent memory issues by rewriting in Rust, you will likely introduce new regressions, which may be much worse. Focusing on writing your unique code in the safe language makes much more sense and gradually migrating things only when they require a substantial rewrite anyway.”

But other Hacker News commentators gave credit to the Chromium team. As one Google veteran stated: “This is a really good thing, and having been through this in other Google projects, a sincere congratulations to the folks who demonstrated the tenacity to keep pushing forward despite both I’m sure a lot of genuine hard questions being asked, and a lot of fud. This outcome will be good for users in the long run.”

Jansen writes that interop will be supported in just one direction “for now,” from C++ to Rust. Interestingly, Google is investing in Crubit, an “extremely” experimental C++/Rust bidirectional tool. The top contributors are Google engineers.

Rust and C++ draw on different concepts that affect interoperability. How these differences get remedied will depend in some respects on how the interop is modeled, so the two languages can at least understand their similarities or untenable differences.

Notably, most interop between Rust and C++ results from narrowly defined APIs, again showing how serious a challenge Google faces with interoperability. The narrowness is needed due to the differences in the languages.

Jansen writes: “For example, Rust guarantees temporal memory safety with static analysis that relies on two inputs: lifetimes (inferred or explicitly written) and exclusive mutability. The latter is incompatible with how the majority of Chromium’s C++ is written.”

TRENDING STORIES
Alex Williams is founder and publisher of The New Stack. He's a longtime technology journalist who did stints at TechCrunch, SiliconAngle and what is now known as ReadWrite. Alex has been a journalist since the late 1980s, starting at the...
Read more from Alex Williams
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.