You can now use Mojo to communicate with Rust code!

153 views
Skip to first unread message

Devon Loehr

unread,
Apr 16, 2026, 10:53:52 AM (7 days ago) Apr 16
to chromi...@chromium.org

Over the last several months, we (the Rust-in-Chrome team) have been hard at work adding the ability to send and receive Mojo messages from Rust code. The resulting Rust Mojo bindings are now functional, meaning that you can use Mojo to communicate between Rust, C++, Java, and Javascript!

If you've been curious about using Rust, now's a great time to start thinking about whether your team's next component would be a good fit for Rust. As a memory-safe language, Rust code automatically satisfies the Rule of 2. If you want to run code in the browser process, or handle untrustworthy inputs, Rust is a great choice. We’ve written an example service to act as a blueprint for using Rust to create a Mojo-accessible service that runs in the browser process. We even have documentation on the core abstractions that we hope you’ll find helpful during your project.

The bindings are still under active development to cover more of Mojo's features, but the core functionality is present, stable, and suitable for a large majority of use cases. If you're interested in using the bindings, please get in touch with us! We're happy to provide support and guidance.

Best,

--Devon Loehr


Pratyush Mohanty

unread,
Apr 16, 2026, 10:54:31 AM (7 days ago) Apr 16
to 'Devon Loehr' via Chromium-dev

Dear Devon Loehr,

Thank you for the update regarding the implementation of Mojo bindings for Rust. This is a significant advancement for the project, and we appreciate the team's ongoing efforts to enhance memory safety within the Chromium codebase. I will share this information with the relevant stakeholders for consideration in our future component development.

Sincerely,

Pratyush Mohanty


Mail AgentEmail sent via Mail Agent
Reply all
Reply to author
Forward
0 new messages