gecko-dev/toolkit
Nicholas Nethercote 12640bca82 Bug 1563555 - Generate static pref getters usable from Rust code. r=glandium
This patch introduces a new Rust crate called `static_prefs`.

It also changes generate_static_pref_list.py to generate two new files.

- StaticPrefsCGetters.cpp: contains C getters, which are just wrappers around
  the C++ getters. This is included into Preferences.cpp.

- static_prefs.rs: contains declarations for the C getters, plus the `pref!`
  macro which provides nice syntax for calling the C getters. This is included
  into static_prefs/src/lib.rs.

The new code is only generated for prefs marked with the new `rust` field in
the YAML. It's opt-in because there's no point generating additional code for
900+ static prefs when only about 20 are currently used from Rust.

This patch only marks a single pref (`browser.display.document_color_use`) with
`rust: true`. That pref isn't accessed from Rust code in this patch, but it's
necessary because the generated Rust code is invalid if there are zero
Rust-accessed prefs. (The next patch will access that pref and others from Rust
code.

Differential Revision: https://phabricator.services.mozilla.com/D40791

--HG--
extra : moz-landing-system : lando
2019-08-07 05:16:55 +00:00
..
actors Bug 1557994 - Picture-in-Picture player video element should not try decoding its own version of the originating video. r=JSON_voorhees 2019-08-02 18:09:24 +00:00
components Merge inbound to mozilla-central. a=merge 2019-08-07 07:34:55 +03:00
content Merge inbound to mozilla-central. a=merge 2019-08-07 07:34:55 +03:00
crashreporter Bug 1570789 - Remove the unused field from GeckoView/Fennec crash reports r=nalexander,agi 2019-08-02 08:26:05 +00:00
docs Bug 1542246 - Add initial documentation for the new Search Engine configuration format. r=daleharvey 2019-06-28 15:23:00 +00:00
forgetaboutsite Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb 2019-07-08 16:37:45 +00:00
library Bug 1563555 - Generate static pref getters usable from Rust code. r=glandium 2019-08-07 05:16:55 +00:00
locales Bug 1501886 - Migrate menubar to Fluent. r=fluent-reviewers,Pike,flod 2019-08-02 16:07:44 +00:00
modules Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander 2019-08-06 23:54:34 +00:00
mozapps Bug 1565507 - Enable default theme on theme uninstallation r=aswan 2019-08-03 12:40:53 +00:00
pluginproblem
profile Bug 1565921 - Load editMenuOverlay.js and globalOverlay.js on documents with HTML inputs. r=Gijs 2019-07-15 11:14:44 +00:00
recordreplay Bug 1570089 Part 1 - Recover from replaying process crashes, r=loganfsmyth. 2019-08-04 16:55:00 +00:00
system Bug 1558915 - Use infallible nsIURI::SchemeIs in toolkit/ r=Ehsan 2019-08-02 16:31:54 +00:00
themes Bug 1570740 - Add yellow-10 color to common.css for use by the breached logins notification in about:logins. r=shorlander 2019-08-03 04:52:38 +00:00
xre Bug 1558915 - Use infallible nsIURI::SchemeIs in toolkit/ r=Ehsan 2019-08-02 16:31:54 +00:00
.eslintrc.js
l10n-registry.manifest Bug 1555662 - Register L10nRegistry sources using categories. r=kmag 2019-06-08 04:37:31 +00:00
moz.build Bug 1555662 - Register L10nRegistry sources using categories. r=kmag 2019-06-08 04:37:31 +00:00
moz.configure Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander 2019-08-06 23:54:34 +00:00
nss.configure
toolkit.mozbuild Bug 1553254 - Part 1: Allow low-overhead selective collection of internal performance probes through ChromeUtils. r=brennie,nika 2019-05-21 21:01:31 +02:00