tree: ac7b547365f8e49f20580b8589ad78541decc212 [path history] [tgz]
  1. unittests/
  2. BUILD.gn
  3. README.md
src/lib/fidl/cpp/examples/README.md

Unified C++ FIDL bindings examples

This directory contains experimental example code for the nascent unified C++ bindings (fxbug.dev/60240). It follows the structure of /examples/fidl. We can incubate the bindings API here.

To use the unified bindings for a library //examples/fidl/fuchsia.examples, declare the following dependency:

deps = [
    "//examples/fidl/fuchsia.examples:fuchsia.examples_cpp",
]

and include the following header:

#include <fuchsia/examples/cpp/fidl_v2.h>

After the unified bindings is sufficiently stable for general use, we can move it to the top-level /examples directory.