tree: aa2e2fb93201a4fe6075900df711665408277889 [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. meta/
  4. src/
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

This project can be added to builds by including --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.