The Rust toolchain is ready for production use

286 views
Skip to first unread message

Dana Jansens

unread,
Oct 11, 2023, 3:30:29 PM10/11/23
to chromium-dev, rust...@chromium.org

Dear Chromium Community,


As of M119 Chromium's Rust toolchain is production-ready.


For the projects that are underway already that are making use of Rust libraries, we are happy to say toolchain support is no longer an obstacle to shipping. Chrome M117 has a Rust library in Stable that is being used daily on Android, Mac, Windows, and Linux. And Chrome M119 Beta has the same on ChromeOS.


We’re now confident that the toolchain is capable of integrating well with Clang in our build configurations and that the resulting binaries optimize well, run correctly, and interact with crash reporting and gdb/lldb properly. From agl@: Our experiment to switch the QR code generator over from C++ with IPC to synchronous Rust has gone smoothly with nothing breaking.


We will address any issues that come up in the future, and we greatly welcome feedback about sharp edges that you uncover at rust...@chromium.org.


At the moment, Rust is approved by Chrome ATLs for use in certain third-party scenarios. We're excited to use learnings from this to inform ongoing discussions around potentially leveraging Rust more widely in Chromium.


Cheers,

The Rust Toolchain / Chrome Memory Safety Team


Dominik Röttsches

unread,
Oct 12, 2023, 8:45:01 AM10/12/23
to dan...@chromium.org, chromium-dev, rust...@chromium.org
Hi Dana, Adrian and the whole Chrome Memory Safety Team,

Congratulations on this fantastic milestone! Tremendous effort on communication, evangelizing and technical excellence in delivering a solid and thorough technical foundation for Chromium to deliver Rust components. Well done!

Dominik

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAHtyhaTuZoMQ_m5shwZgPRBF7C2izyvYCPpO3hfLpKbRG4iiug%40mail.gmail.com.

Caleb Raitto

unread,
Oct 12, 2023, 12:20:04 PM10/12/23
to danakj, rust...@chromium.org
Congratulations on this incredible milestone!

Does this mean that the Rust JSON parser [0] can be used in production soon?


Thanks for all your hard work on this,
-Caleb

Dana Jansens

unread,
Oct 12, 2023, 12:21:52 PM10/12/23
to Caleb Raitto, rust...@chromium.org
Hi Caleb,

Thank you :) The JSON parser is still in an experimental phase, so there's no timeline or guarantee I can give about that at the moment.

Cheers,
Dana

Caleb Raitto

unread,
Oct 12, 2023, 12:23:31 PM10/12/23
to rust-dev, Dana Jansens, rust...@chromium.org, Caleb Raitto
Understood -- thanks for the update. Still very exciting to see the progress here :)

-Caleb

David Adrian

unread,
Oct 12, 2023, 12:27:06 PM10/12/23
to Caleb Raitto, rust-dev, Dana Jansens, Caleb Raitto
We should have the Rust JSON parser enabled on Canary/Dev soon.

--
You received this message because you are subscribed to the Google Groups "rust-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rust-dev+u...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/rust-dev/45cabf3b-fcc5-4675-b46e-db4bc24c522en%40chromium.org.

Caleb Raitto

unread,
Oct 20, 2023, 1:33:12 PM10/20/23
to David Adrian, rust-dev, Dana Jansens, Paul Jensen

Paul Jensen

unread,
Oct 20, 2023, 3:31:14 PM10/20/23
to Caleb Raitto, David Adrian, rust-dev, Dana Jansens
On Fri, Oct 20, 2023 at 1:33 PM Caleb Raitto <cara...@chromium.org> wrote:
On Thu, Oct 12, 2023 at 12:27 PM David Adrian <dad...@google.com> wrote:
We should have the Rust JSON parser enabled on Canary/Dev soon.

This is incredibly exciting.  Over on the Protected Audience team, we're frequently running into DataDecoder latency.  We've spent a lot of time optimizing this, e.g. 1, 2, and are likely to spend a lot more time on this.  If switching to a Rust JSON parser cuts down on process-creation and IPC for the DataDecoder, that would be really helpful.

Paul Jensen

unread,
Aug 15, 2024, 2:03:03 PM8/15/24
to Caleb Raitto, David Adrian, rust-dev, Dana Jansens
Dana,

Ping 10 months later.  How's this going?
Reply all
Reply to author
Forward
Message has been deleted
0 new messages