tree: fa2704d830c58b8076687270769f42cfac2e42b5 [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.