Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
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
.cargo Bug 1569090 - Update audioipc to 177ebd96. r=chunmin 2019-07-27 13:14:23 +00:00
.vscode Bug 1563848 - Recommend a VSCode plugin for prettier. r=vporof 2019-07-06 07:33:28 +00:00
accessible Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
browser Merge inbound to mozilla-central. a=merge 2019-08-07 07:34:55 +03:00
build Bug 1571836 - Enable Rust PGO on Linux64. r=froydnj 2019-08-06 22:26:49 +00:00
caps Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
chrome Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
config Bug 1437452 - add makefile bits for cross-language PGO; r=glandium 2019-08-01 21:27:11 +00:00
devtools Bug 1566002 - Remove unnecessary key values and replace componentWillReceiveProps. r=nchevobbe 2019-08-06 19:40:27 +00:00
docshell Backed out 7 changesets (bug 1565689) for assertion failures at MediaControlUtils.h on a CLOSED TREE 2019-08-07 04:40:52 +03:00
dom Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-08-07 07:37:08 +03:00
editor Bug 1569613 - Add surrogate pair handling API to nsTextFragment r=hsivonen 2019-08-06 05:43:21 +00:00
extensions Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
gfx Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
gradle/wrapper Bug 1522795 - Update android gradle plugin to 3.4.2. r=nalexander 2019-07-24 18:48:54 +00:00
hal Bug 1289211 - Rename InfallibleTArray to nsTArray in hal/ r=gsvelto 2019-07-10 03:30:52 +00:00
image Bug 1558915 - Use infallible nsIURI::SchemeIs in image/ r=tnikkel 2019-08-03 09:44:12 +00:00
intl Bug 1501886 - Migrate menubar to Fluent. r=fluent-reviewers,Pike,flod 2019-08-02 16:07:44 +00:00
ipc Bug 1568361: Use StaticLocalAutoPtr for BackgroundMTAData; r=Jamie 2019-08-07 01:48:31 +00:00
js Merge inbound to mozilla-central. a=merge 2019-08-07 07:34:55 +03:00
layout Merge inbound to mozilla-central. a=merge 2019-08-07 07:34:55 +03:00
media Bug 1570212 - Convert media.webrtc.net.force_disable_rtcp_reception to a static pref. r=jya 2019-08-02 12:33:17 +00:00
memory Bug 1571505 - Properly add dbghelp where needed. r=nalexander 2019-08-06 18:14:12 +00:00
mfbt Bug 1570725 - Show type of assertion in crashreporter MozCrashReason, r=froydnj 2019-08-06 20:33:34 +00:00
mobile Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander 2019-08-06 23:54:34 +00:00
modules Bug 1563555 - Generate static pref getters usable from Rust code. r=glandium 2019-08-07 05:16:55 +00:00
mozglue Bug 1571392 - Make BlocksRingBuffer::EntryWriter move-only - r=gregtatum 2019-08-07 01:54:45 +00:00
netwerk Merge inbound to mozilla-central. a=merge 2019-08-07 07:34:55 +03:00
nsprpub Bug 1562330 - Upgrade Firefox 70 to NSPR 4.22 beta1. r=me 2019-07-09 17:40:27 +02:00
other-licenses Bug 1458385: Package mar and mbsdiff as a toolchain; r=glandium 2019-07-11 16:40:13 +00:00
parser Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
python Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander 2019-08-06 23:54:34 +00:00
remote bug 1570378: remote: add bc test helper setup() for empty documents r=remote-protocol-reviewers,jdescottes 2019-08-05 11:43:58 +00:00
security Bug 1564499 - land NSS 777b6070fe76 UPGRADE_NSS_RELEASE, r=me 2019-08-05 15:58:54 +00:00
services Bug 1561762 - better handle concurrent requests for FxA oauth tokens. r=eoger,rfkelly 2019-08-06 15:25:05 +00:00
servo Bug 1339672 - Support multiple track sizes for grid-auto-{columns|rows}. r=emilio,mats 2019-08-06 18:32:16 +00:00
startupcache Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
storage Bug 1567739 - Stop using deprecated rust libc integer types in storage_variant and kvstore. r=lina 2019-07-23 00:13:43 +00:00
taskcluster Bug 1571587 - Remove unused fetches. r=nalexander 2019-08-06 18:14:37 +00:00
testing Bug 1527846 - disabled new_window_same_origin.tentative.html on mac debug r=mccr8 2019-08-06 23:10:15 +00:00
third_party Bug 1567238 - Refactor the bookmarks mirror merge triggers to do less work. r=tcsc,markh 2019-08-06 23:48:03 +00:00
toolkit Bug 1563555 - Generate static pref getters usable from Rust code. r=glandium 2019-08-07 05:16:55 +00:00
tools Bug 1571348 - ProfilerMarkerPayload::Set...() can be replaced with constructor arguments - r=gregtatum 2019-08-07 01:53:55 +00:00
uriloader Bug 1558915 - Use infallible nsIURI::SchemeIs in uriloader/ r=bzbarsky 2019-08-05 20:08:21 +00:00
view Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
widget Backed out changeset b197ca57677a (bug 1558915) for build bustages. CLOSED TREE 2019-08-07 01:04:43 +03:00
xpcom Bug 1568361: Use StaticLocalAutoPtr for BackgroundMTAData; r=Jamie 2019-08-07 01:48:31 +00:00
xpfe/appshell Bug 1561015: Part 1 - Use BrowsingContext in window provider APIs. r=bzbarsky,mossop 2019-08-02 20:48:33 +00:00
.arcconfig
.clang-format Bug 1547143 - Force the pointer style declaration r=Ehsan 2019-05-01 08:46:08 +00:00
.clang-format-ignore Bug 1563903 - Remove libmar from the clang ignore list r=Ehsan 2019-07-08 15:39:24 +00:00
.cron.yml Bug 1568232 - Run raptor cold page-load test job on fenix and refbrow. r=perftest-reviewers,davehunt 2019-07-31 16:31:42 +00:00
.eslintignore Bug 1556849 - Enable ESLint for dom/base/. r=Standard8,mccr8 2019-07-15 17:22:45 +00:00
.eslintrc.js Bug 1564555 - Enable some more ESLint rules for layout. r=Standard8,dholbert 2019-07-18 21:00:21 +00:00
.flake8 Bug 1542963 - Fix most flake8 issues in python/mozbuild/mozbuild/* r=firefox-build-system-reviewers,chmanchester 2019-05-28 14:22:20 +00:00
.gdbinit
.gdbinit_python Bug 1564314 - Move gdbpp back to python/. r=nalexander 2019-07-11 02:39:31 +00:00
.git-blame-ignore-revs Bug 1564862 - Update .git-blame-ignore-revs to ignore reformatting m-c using Prettier (bug 1561435) in blame/annotate, r=sylvestre 2019-07-10 13:47:38 +00:00
.gitattributes Bug 770286: Prevent git LF-to-CRLF autoconversion r=glandium 2019-07-06 02:36:03 +00:00
.gitignore Bug 1559479 - mach lint complains about newtab node_modules r=dmose 2019-07-12 15:24:07 +00:00
.hg-annotate-ignore-revs Bug 1563763 - Ignore reformatting m-c using Prettier (bug 1561435) in in blame/annotate, r=standard8, CLOSED TREE, DONTBUILD 2019-07-05 17:53:06 +02:00
.hg-format-source Bug 1556393 - Pre 1 (m-c): Update .hg-format-source to use Prettier when running format-source, r=andi, CLOSED TREE 2019-07-03 20:48:37 +02:00
.hgignore Bug 1559479 - mach lint complains about newtab node_modules r=dmose 2019-07-12 15:24:07 +00:00
.hgtags No bug - Tagging mozilla-central e596664275d5e3e2fdcb7fa8d1447289f99269c3 with FIREFOX_NIGHTLY_69_END a=release DONTBUILD CLOSED TREE 2019-07-08 16:13:40 +00:00
.lldbinit
.mailmap
.prettierignore Bug 1561435 - Format remaining devtools/, a=automatic-formatting, CLOSED TREE 2019-07-05 11:29:32 +02:00
.prettierrc Bug 1551218 - Part 3: Add a top-level .prettierrc and reformat the debugger, r=jlast 2019-05-17 15:51:36 +00:00
.taskcluster.yml Bug 1542233 - Add link to treeherder for all notification emails r=tomprince 2019-07-08 18:47:27 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4 Bug 1557583 - Add a --enable-frame-pointers option. r=chmanchester 2019-06-12 22:30:46 +00:00
AUTHORS
build.gradle Bug 1571326 - Update to apilint 0.2.5. r=droeh 2019-08-05 17:48:21 +00:00
Cargo.lock Bug 1563555 - Generate static pref getters usable from Rust code. r=glandium 2019-08-07 05:16:55 +00:00
Cargo.toml Bug 1569331 - Update bindgen to 0.51. r=froydnj 2019-07-27 00:36:18 +00:00
client.mk
client.py
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-07-08 17:27:36 +00:00
configure.in
configure.py Bug 1559975 - Make configure.py lint with 'py2' and 'py3' r=catlee 2019-07-08 17:34:09 +00:00
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LEGAL
LICENSE
mach
Makefile.in Bug 1570798 - Restore relative path for MOZ_FETCHES_DIR. r=nalexander 2019-08-03 07:08:39 +09:00
moz.build Bug 1560425 - Remove old performance measurement API r=jorendorff 2019-07-02 14:37:17 +00:00
moz.configure Bug 1560340 - Only add confvars.sh as a dependency to config.status when it exists. r=chmanchester 2019-06-20 18:43:25 +00:00
mozilla-config.h.in
old-configure.in Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander 2019-08-06 23:54:34 +00:00
package-lock.json Bug 1567134 - Update the node modules packages for the builders. r=ahal 2019-07-18 13:10:40 +00:00
package.json Bug 1564138 - Fix DevTools PropTypes errors when updating eslint. r=Ola. 2019-07-17 10:35:44 +00:00
README.txt
settings.gradle Bug 1543982 - Part 1: Avoid re-configuring from within Gradle. r=emilio 2019-05-09 20:38:48 +00:00
test.mozbuild

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.