mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
ce8432a312
commit
75b691cb87
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user