Latest version of Firefox will require Rust to compile successfully, restricting the number of platforms that the browser can be ported to
Mozilla always intended for Rust to be used inΒ building key parts of the Firefox browser. Now the company is committing to that vision in a significant manner.
After version 53, FirefoxΒ will require Rust to compile successfully, due to the presence of Firefox components built with the language. But this decision may restrict the number of platforms that Firefox can be ported toβfor now.
Rust,Β Mozilla Researchβs languageΒ for fast and safe system-level programming, is on the eve of a new release.Β Rust 1.15βs most notable new feature is a revamped build system written in Rust and using Rustβs native Cargo package management. Previously, Rust was built with makefiles; with this change, Rust can be built using Cargo βcratesβ like any other Rust project. Itβs one of many steps that Rust has taken toward becoming its own ecosystem, not dependent on pieces built by others.
As Rust has matured and stabilized, itβs become easier for Firefox developers to move more of the browserβs critical infrastructure to that language. But thereβs a downside: Any platform where you intend to build and run Firefox will need a working edition of the Rust compiler.
Rust is meant to be cross-platform, so this should be possible. However, the practical implications are more complex. Rust depends on LLVM, which has dependencies of its ownβand all of them would need to be supported on the target platform.
A discussion on the Bugzilla tracker for Firefox raises many of these points. Other concerns also bubbled up: What about proper support for Linux distributions with long-term support, where the tools available on the distro are often frozen, and where newer Rust features might not be available? What about support for Firefox on βnon-tier-1β platforms, which make up a smaller share of Firefox users?
Mozillaβs stance is that in the long run, the pain of transition will be worth it. βThe advantage of using Rust is too great,β according to maintainer Ted Mielczarek. βWe normally donβt go out of our way to make life harder for people maintaining Firefox ports, but in this case we canβt let lesser-used platforms restrict us from using Rust in Firefox,β he wrote.
The platforms most likely to be affected by this decision, according to a discussion in the Bugzilla thread, are nondesktop architectures like IBMβs S390. As a result, itβs possible that those who ship Linux distributions for those architecturesβas Red Hat does with Fedoraβwill simply drop Firefox support for the builds that do not yet fully support Rust.
Most Firefox users wonβt be affected by this. The best hope for those who are, will be to marshal efforts to build out whatever platforms need Rust supportβsimultaneously driving development for both Firefox and Rust.
Conventional Firefox users, though, care more about the end resultβaΒ promised rejuvenation that will keep the browser speedy and feature-competitiveβand less about the technology used to accomplish it. The pressureβs on not only to move to Rust, but to prove the move was worth it.


