mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-01 00:38:50 +02:00
Added JS topic guides and also updated the existing Swift/JS ones a bit. I didn't add a guide for remote settings, since I don't think we want to encourage users to use this one over the official client. Split up the notes at the begining into prerequites and notes on async. My hope is that the async notes can go away once we start making our components async. Differential Revision: https://phabricator.services.mozilla.com/D228481
752 B
752 B
Viaduct
Viaduct initialization is required for all platforms and for multiple components. The README explains the component in more detail.
Firefox Desktop, Firefox Android, and Firefox iOS all already initialize viaduct. You only need to take action if you want to use the Rust components on a new application.
There are 3 different options to use viaduct:
- Any
libxulbased can ignore initialization, since it's handled bylibxul. - Using the reqwest backend, which uses the
reqwestlibrary and areqwest-managed thread. - Implementing the C FFI like
libxuldoes (https://searchfox.org/mozilla-central/source/toolkit/components/viaduct).