tree: d893c39866164464aaa6c8d757a0c208a8c7f9a1 [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  4. meta/
  5. src/
src/sys/lib/component_id_index/README.md

component_id_index library

This library merges and validates component ID index files. It provides a way to use a custom encoding format (e.g, JSON), along with conversion to/from the FIDL schema.

This library has 2 clients:

  • A build tool which validates and merges component ID index files written in JSON5 into a single index, which is written out into 2 files: a JSON-subset index file, and a FIDL-encoded index file. These indicies are used by appmgr and component_manager, respectively.
  • component_manager which consumes a single FIDL-encoded component ID index file.

See //sdk/fidl/fuchsia.component.internal/component_id_index.fidl for the FIDL schema.

In order to keep the size of component_manager small, this library does not directly depend on serde_json and serde_json5. Instead, this library accepts a decoder implementation which helps decode a JSON/JSON5 string into an Index data structure.