Home

Awesome

ecapnp

Cap'n Proto library for Erlang.

NOTICE: This is work-in-progress. Feedback appreciated.

Current Status

Note

In order for ecapnp to work properly, ecapnp has to be on the Erlang lib path (i.e. ERL_LIBS), and ecapnp/bin/capnpc-erl needs to be on your PATH.

Try it:

cd ../path/to/ecapnp
export ERL_LIBS=$(dirname $(pwd))
export PATH=$PATH:$(pwd)/bin
make samples
capnpc -oerl .../my_schema.capnp

This will (given that everything is working as intended) produce a .../my_schema_capnp.beam file.

A few noteworthy options you can set in the environment are:

(these options should be available as argument when compiling the code generator request.. alas, that is yet to be implemented)

Web Site

Head over to ecapnp.astekk.se for documentation etc.