Following bug 1177608, Rust code in Gecko is now compiled with optimisation by default.
Compilation of Rust components can be enabled
to your mozconfig file.
For now there’s only limited usage of Rust in Gecko,
but you can take a look at the bindings for the
MP4 encoder if you’re interested.
This is much thanks to the work of
Since optimised compiles are the default,
you will now also get optimised output from rustc.
You can disable this by setting
This disables compilation for all cc, c++, and rustc compilers.
Next up is adding debug symbols, assertions, and adding some Rust autoconf macros.