tree: 37fb40d1106e40992174de8e75f260887b630d2e [path history] [tgz]
  1. meta/
  2. src/
  3. BUILD.gn
  4. README.md
src/sys/device_settings/README.md

device_settings

Reviewed on: 2019-07-22

device_settings exists to store mutable state for other components on the system. It is currently deprecated in favor of stash, and new clients should favor stash over device_settings.

Building

To add this project to your build, append --with //src/sys/device_settings to the fx set invocation.

Running

device_settings provides the fuchsia.devicesettings.DeviceSettingsManager service on Fuchsia, and will be run by sysmgr when other components wish to access it.

Testing

Unit tests for device_settings are available in the device_settings_manager_tests package. This package is currently not included in builds, as it has bit-rot and the tests do not pass.

Source layout

The implementation is located in src/main.rs. Unit tests are co-located with the implementation, and thus live in the same file.