Bug 1852356 - Document that using a pref from Rust requires opt-in using 'rust: true'. r=KrisWright

Differential Revision: https://phabricator.services.mozilla.com/D187822
This commit is contained in:
Botond Ballo 2023-09-13 22:00:41 +00:00
parent ce8432a312
commit 75b691cb87

View File

@ -268,7 +268,8 @@ Prefs are not synced on mobile.
### Rust
Static prefs mirror variables can be accessed from Rust code via the
`static_prefs::pref!` macro. Other prefs currently cannot be accessed. Parts
`static_prefs::pref!` macro, for prefs which opt into this using
`rust: true`. Other prefs currently cannot be accessed. Parts
of libpref's C++ API could be made accessible to Rust code fairly
straightforwardly via C bindings, either hand-made or generated.