tree: a4e9a28d8d08787ac617cb0c4ad900297c0bcdf0 [path history] [tgz]
  1. fidl/
  2. meta/
  3. src/
  4. BUILD.gn
  5. component_index.gni
  6. README.md
src/sys/component_index/README.md

component_index

Reviewed on: 2019-07-11

component_index provides an implementation of the fuchsia.sys.index.ComponentIndex service, which is used on Fuchsia devices to convert human input into component URLs for developers.

See also: //src/sys/locate

Building

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

Running

Once included in a build, component_index can be accessed via tools such as locate and run.

$ fx shell locate --help

Testing

Unit tests for component_index are available in the component_index_tests package.

$ fx run-test component_index_tests

Source layout

The entrypoint is located in src/main.rs, and the fidl service is defined in fidl/index.fidl.