sudo apt update && sudo apt install python build-essential -y
wget -O bootstrap.py https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py && python bootstrap.py
cd mozilla-unified/
./mach buildhttps://developer.mozilla.org/en-US/docs/Mozilla/Developer_g...
mozilla-central is just such a big repository that it pushes the usual cloning process to its limits.
The Rust dependency was added to Firefox very recently, so I guess with the holidays it hasn't made it into the bootstrap script and docs yet.
They aren't suggesting using compile flags requires code changes...
Then you make a custom mozconfig file to disable or enable features, or to add your own extensions (ie: windows): https://developer.mozilla.org/en-US/docs/Mozilla/Developer_g...
ac_add_options --disable-activex
ac_add_options --disable-activex-scripting
ac_add_options --disable-installer
ac_add_options --disable-crashreporter
You can further abstract this with a mozconfig wrapper https://github.com/ahal/mozconfigwrapperBut I agree, I can't find any documentation what exactly every feature is and why you would not want to disable/enable them. The Chromium build process is much more straight forward, or you could just use 3rd party sandbox and regular release FF.
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_g...
On Linux I clone the source and run "./mach build".