device_settingsReviewed 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.
To add this project to your build, append --with //src/sys/device_settings to the fx set invocation.
device_settings provides the fuchsia.devicesettings.DeviceSettingsManager service on Fuchsia, and will be run by sysmgr when other components wish to access it.
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.
The implementation is located in src/main.rs. Unit tests are co-located with the implementation, and thus live in the same file.