Files
graphene/Examples/capnproto
Paweł Marczewski 17ab04db59 [Pal,LibOS] New logging system
Instead of 'loader.debug_type', introduce 'loader.log_level'
and 'loader.log_file', along with a set of definitions for
logging at a chosen level.

For now, the call sites keep using the legacy macros (SGX_DBG and
debug()), because converting them all will conflict with other
big changes in the code base. The existing LibOS calls are
assumed to be at 'info' level.
2021-01-20 17:27:29 +01:00
..
2021-01-20 17:27:29 +01: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
```