Files
Dmitrii Kuvaiskii 8eee4a4742 [LibOS,Pal,Examples,GSC,Docs] Move manifest parsing to TOML
The manifest syntax stays exactly the same, including 0 and 1
integers to denote boolean values (this is done for ease of porting
and can be fixed in future commits). The only visible change is
surrounding strings in the manifest with quotes (requirement of
TOML). All manifests and Makefiles of our tests and example apps are
ported to the new TOML syntax. Documentation is updated.
2020-11-12 05:45:07 -08:00
..
2020-03-30 21:10:41 +02:00

# Cap'n Proto and Addressbook example

This directory contains the Makefile and the template manifest for the Addressbook example of the
Cap'n Proto protocol. Addressbook is the sample application that uses Cap'n Proto from the official
documentation (copied from the official GitHub repo, v0.7.0). We use the preinstalled libcapnp
library on the host OS instead of downloading the sources, building, and linking Addressbook against
the built library (which is possible but would require more effort). This was tested on machines
with SGX v1 and Ubuntu 16.04/18.04.

Please install the following prerequisites: `sudo apt install -y libcapnp-dev capnproto`.

# Quick Start

```sh
# build Addressbook and the final manifest
make SGX=1

# run original Addressbook
./addressbook write

# run Addressbook in non-SGX Graphene
./pal_loader addressbook write

# run Addressbook in Graphene-SGX
SGX=1 ./pal_loader addressbook write
```