mojo/v23proxy: Add Dart client library (and echo + fortune examples)

Note that this is heavily dependent on the corresponding CL in Mojo
that generates type information in Dart.

Room for improvement:
- README.md needed with easier instructions for those who are only
  curious about how to run the examples.
- Makefile needs help.
- Need to be able to specify a name to mount at for v23proxy.
- Stop using REMOTE_ENDPOINT envvar; use an argument instead.
- Android support (--android flag and potentially different variables
  need to be sent to mojo_run)
- May need to modify the dependency override for the Dart packages
  because it's relative to my Mojo setup, not necessarily everyone's

Change-Id: I5faa1fe85b890a4bc7d3dda95d75a97b8ba0b90d
9 files changed
tree: 1de278aa7d11f6a91fa32c10a3d03f45bfdb3d4f
  1. dart-examples/
  2. go/
  3. lib/
  4. mojom/
  5. .gitignore
  6. AUTHORS
  7. CONTRIBUTING.md
  8. CONTRIBUTORS
  9. LICENSE
  10. Makefile
  11. PATENTS
  12. pubspec.yaml
  13. README.md
  14. VERSION
README.md

Mojo + v23 RPCs

This repository implements the proposal outlined here that enables communication between Mojo applications on different devices.

Quick start

  • For desktop: make build
  • For android: ANDROID=1 make build

The commands above build the .mojo shared library that can be run by mojo shells. For example:

  • make start-v23proxy
  • HOME=/tmp make ARGS="{see Makefile}" start-echo-client

You can also run these with Android devices. Use an ANDROID={N} prefix to run on the Nth Android device connected to your machine. N must be a positive integer.

Note: To run these examples, the devices used must run mojo_shell on the same local network.